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
This commit is contained in:
helixhorned 2013-07-13 21:05:05 +00:00
parent e7e8f00670
commit 8c9f0b740d

View file

@ -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