Previous 199869 Revisions Next

r21988 Wednesday 20th March, 2013 at 17:54:09 UTC by Oliver Stöneberg
disabled some GCC-specific hacks in sdl.mak when clang is being used / also silenced linker for DISTRO=ubuntu-intrepid (nw)
[src/osd/sdl]sdl.mak

trunk/src/osd/sdl/sdl.mak
r21987r21988
128128ifeq ($(DISTRO),ubuntu-intrepid)
129129# Force gcc-4.2 on ubuntu-intrepid
130130CC = @gcc -V 4.2
131LD = g++-4.2
131LD = @g++-4.2
132132else
133133ifeq ($(DISTRO),gcc44-generic)
134134CC = @gcc-4.4
r21987r21988
439439# TEST_GCC for GCC version-specific stuff
440440#-------------------------------------------------
441441
442ifeq (,$(findstring clang,$(CC)))
442443# TODO: needs to use $(CC)
443444TEST_GCC = $(shell gcc --version)
444445
r21987r21988
456457ifeq ($(findstring 4.7.,$(TEST_GCC)),4.7.)
457458   CCOMFLAGS += -Wno-narrowing -Wno-attributes
458459endif
460endif
459461
460462#-------------------------------------------------
461463# Unix
r21987r21988
599601# Static linking
600602
601603LDFLAGS += -static-libgcc
604ifeq (,$(findstring clang,$(CC)))
602605ifeq ($(findstring 4.4,$(TEST_GCC)),)
603606   #if we use new tools
604607   LDFLAGS += -static-libstdc++
605608endif
609endif
606610
607611ifndef NO_USE_QTDEBUG
608612MOC = @moc

Previous 199869 Revisions Next


© 1997-2024 The MAME Team