Previous 199869 Revisions Next

r20576 Monday 28th January, 2013 at 08:49:47 UTC by Oliver Stöneberg
improved some version checks in makefiles / added TODOs (nw)
[src/osd/sdl]sdl.mak
[src/osd/windows]windows.mak

trunk/src/osd/windows/windows.mak
r20575r20576
253253
254254# ensure we statically link the gcc runtime lib
255255LDFLAGS += -static-libgcc
256# TODO: needs to use $(CC)
256257TEST_GCC = $(shell gcc --version)
257ifeq ($(findstring 4.4,$(TEST_GCC)),)
258ifeq ($(findstring 4.4.,$(TEST_GCC)),)
258259   #if we use new tools
259260   LDFLAGS += -static-libstdc++
260261endif
trunk/src/osd/sdl/sdl.mak
r20575r20576
436436# TEST_GCC for GCC version-specific stuff
437437#-------------------------------------------------
438438
439# TODO: needs to use $(CC)
439440TEST_GCC = $(shell gcc --version)
440441
441ifeq ($(findstring 4.7,$(TEST_GCC)),4.7)
442   CCOMFLAGS += -Wno-narrowing -Wno-attributes
443endif
444
445442# Ubuntu 12.10 GCC 4.7.2 autodetect
446443ifeq ($(findstring 4.7.2-2ubuntu1,$(TEST_GCC)),4.7.2-2ubuntu1)
447444GCC46TST = $(shell which g++-4.6 2>/dev/null)
r20575r20576
450447endif
451448CC = @gcc-4.6
452449LD = @g++-4.6
450TEST_GCC = $(shell gcc-4.6 --version)
453451endif
454452
453ifeq ($(findstring 4.7.,$(TEST_GCC)),4.7.)
454   CCOMFLAGS += -Wno-narrowing -Wno-attributes
455endif
456
455457#-------------------------------------------------
456458# Unix
457459#-------------------------------------------------

Previous 199869 Revisions Next


© 1997-2024 The MAME Team