disabled some GCC-specific hacks in sdl.mak when clang is being used / also silenced linker for DISTRO=ubuntu-intrepid (nw)

This commit is contained in:
Oliver Stöneberg 2013-03-20 17:54:09 +00:00
parent 90362d4baf
commit 9e90158d7d

View File

@ -128,7 +128,7 @@ else
ifeq ($(DISTRO),ubuntu-intrepid)
# Force gcc-4.2 on ubuntu-intrepid
CC = @gcc -V 4.2
LD = g++-4.2
LD = @g++-4.2
else
ifeq ($(DISTRO),gcc44-generic)
CC = @gcc-4.4
@ -439,6 +439,7 @@ SDLOS_TARGETOS = $(BASE_TARGETOS)
# TEST_GCC for GCC version-specific stuff
#-------------------------------------------------
ifeq (,$(findstring clang,$(CC)))
# TODO: needs to use $(CC)
TEST_GCC = $(shell gcc --version)
@ -456,6 +457,7 @@ endif
ifeq ($(findstring 4.7.,$(TEST_GCC)),4.7.)
CCOMFLAGS += -Wno-narrowing -Wno-attributes
endif
endif
#-------------------------------------------------
# Unix
@ -599,10 +601,12 @@ endif
# Static linking
LDFLAGS += -static-libgcc
ifeq (,$(findstring clang,$(CC)))
ifeq ($(findstring 4.4,$(TEST_GCC)),)
#if we use new tools
LDFLAGS += -static-libstdc++
endif
endif
ifndef NO_USE_QTDEBUG
MOC = @moc