mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Makefile: Replace "gnu" with "c" in language standard declarations if we are using clang.
This should give us compatibility without compromising platforms that either don't recognize the "gnu" variants but include strdup, snprintf, etc anyway (clang on desktop), or that support "gnu" and don't include these functions in the "c" variants (gcc in devkitPPC). DONT_BUILD. git-svn-id: https://svn.eduke32.com/eduke32@6110 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
cb2d1f4bce
commit
f4fa0ceafd
1 changed files with 5 additions and 0 deletions
|
@ -287,6 +287,11 @@ CSTD:=-std=gnu99
|
|||
CONLYFLAGS=$(CSTD)
|
||||
CXXSTD:=-std=gnu++03
|
||||
CXXONLYFLAGS=$(CXXSTD) -fno-exceptions -fno-rtti
|
||||
ifneq (0,$(CLANG))
|
||||
CSTD:=$(subst gnu,c,$(CSTD))
|
||||
CXXSTD:=$(subst gnu,c,$(CXXSTD))
|
||||
endif
|
||||
|
||||
ASFORMAT=elf$(BITS)
|
||||
ASFLAGS=-s -f $(ASFORMAT) #-g
|
||||
LINKERFLAGS=
|
||||
|
|
Loading…
Reference in a new issue