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:
hendricks266 2017-03-27 17:13:13 +00:00
parent cb2d1f4bce
commit f4fa0ceafd

View file

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