mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-26 00:40:56 +00:00
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:
parent
eaa2b90251
commit
7b47a21cf2
1 changed files with 7 additions and 1 deletions
|
@ -471,7 +471,7 @@ ifneq (0,$(RELEASE))
|
||||||
|
|
||||||
ifneq (0,$(LTO))
|
ifneq (0,$(LTO))
|
||||||
COMPILERFLAGS += -DUSING_LTO
|
COMPILERFLAGS += -DUSING_LTO
|
||||||
COMMONFLAGS += -flto -fno-lto-odr-type-merging
|
COMMONFLAGS += -flto
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
## Debugging enabled
|
## Debugging enabled
|
||||||
|
@ -660,6 +660,12 @@ ifeq (1,$(strip $(shell expr $(GCC_MAJOR) \>= 4)))
|
||||||
L_SSP := -lssp
|
L_SSP := -lssp
|
||||||
endif
|
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++.
|
# NOTE: If your setup doesn't have libstdc++, you can try using libsupc++.
|
||||||
# Search for STDCPPLIB below and change it to -lsupc++.
|
# Search for STDCPPLIB below and change it to -lsupc++.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue