From 8c9f0b740d0b44aa1f6fd906c1235c6f605293eb Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sat, 13 Jul 2013 21:05:05 +0000 Subject: [PATCH] Makefile.common: make LUNATIC be set to 0 if not set from env ("?=0"). Also override LTO to 0 in Lunatic builds. git-svn-id: https://svn.eduke32.com/eduke32@3957 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/Makefile.common | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/Makefile.common b/polymer/eduke32/Makefile.common index e5041426b..16c9e2aaa 100644 --- a/polymer/eduke32/Makefile.common +++ b/polymer/eduke32/Makefile.common @@ -137,6 +137,7 @@ BUILD32_ON_64 ?= 0 USE_LIBPNG ?= 1 USE_LIBVPX ?= 1 NETCODE ?= 1 +LUNATIC ?= 0 ifeq (0,$(USE_OPENGL)) POLYMER = 0 @@ -180,6 +181,12 @@ ifneq ($(DEBUGANYWAY),0) override STRIP= endif +ifneq ($(LUNATIC),0) + # FIXME: Lunatic builds with LTO don't start up properly as the required + # symbol names are apparently not exported. + override LTO=0 +endif + ifndef LTO LTO=1 ifneq (0,$(CLANG)) @@ -422,10 +429,9 @@ ifeq ($(PLATFORM),DARWIN) -I/opt/local/include -I/sw/include -I/usr/local/include endif -#### Lunatic development, do not touch! -LUNATIC=0 +#### Lunatic development +# LuaJIT standalone interpreter executable: LUAJIT=luajit - # for LJ headers: LUAJIT_WIN_SRC:= f:/g/mod/luajit-2.0/src