mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Fix build with GCC 4.9.
git-svn-id: https://svn.eduke32.com/eduke32@4513 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
015acc9fb9
commit
304a13e259
2 changed files with 13 additions and 4 deletions
|
@ -293,10 +293,6 @@ ifndef OPTOPT
|
|||
OPTOPT=
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq (,$(CUSTOMOPT))
|
||||
OPTOPT+= $(CUSTOMOPT)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq (0,$(KRANDDEBUG))
|
||||
|
@ -398,6 +394,12 @@ ifneq (0,$(RELEASE))
|
|||
ifneq (0,$(LTO))
|
||||
BASELDFLAGS+= -flto
|
||||
debug+= -DUSING_LTO -flto
|
||||
ifeq (1,$(strip $(shell expr $(GCC_MAJOR) \>= 4)))
|
||||
ifeq (1,$(strip $(shell expr $(GCC_MINOR) \>= 9)))
|
||||
BASELDFLAGS+= -ffat-lto-objects
|
||||
debug+= -ffat-lto-objects
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
else
|
||||
# Debugging enabled
|
||||
|
@ -575,3 +577,9 @@ EROOT:=build
|
|||
|
||||
# will be potentially overridden in build/Makefile.shared
|
||||
EXESUFFIX=
|
||||
|
||||
|
||||
ifneq (,$(CUSTOMOPT))
|
||||
BASECOMMONFLAGS+= $(CUSTOMOPT)
|
||||
BASELDFLAGS+= $(CUSTOMOPT)
|
||||
endif
|
||||
|
|
|
@ -92,6 +92,7 @@ static __inline int32_t _lrotl(int32_t i, int sh)
|
|||
#endif
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#undef _inline
|
||||
#define _inline inline
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue