Limit -fno-lto-odr-type-merging to GCC 5.x

git-svn-id: https://svn.eduke32.com/eduke32@5617 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2016-02-07 03:15:46 +00:00
parent eaa2b90251
commit 7b47a21cf2

View file

@ -471,7 +471,7 @@ ifneq (0,$(RELEASE))
ifneq (0,$(LTO))
COMPILERFLAGS += -DUSING_LTO
COMMONFLAGS += -flto -fno-lto-odr-type-merging
COMMONFLAGS += -flto
endif
else
## Debugging enabled
@ -660,6 +660,12 @@ ifeq (1,$(strip $(shell expr $(GCC_MAJOR) \>= 4)))
L_SSP := -lssp
endif
ifeq (1,$(strip $(shell expr $(GCC_MAJOR) \>= 5)))
ifneq (0,$(LTO))
COMMONFLAGS += -fno-lto-odr-type-merging
endif
endif
# NOTE: If your setup doesn't have libstdc++, you can try using libsupc++.
# Search for STDCPPLIB below and change it to -lsupc++.