trunk/src/osd/windows/windows.mak
| r20575 | r20576 | |
| 253 | 253 | |
| 254 | 254 | # ensure we statically link the gcc runtime lib |
| 255 | 255 | LDFLAGS += -static-libgcc |
| 256 | # TODO: needs to use $(CC) |
| 256 | 257 | TEST_GCC = $(shell gcc --version) |
| 257 | | ifeq ($(findstring 4.4,$(TEST_GCC)),) |
| 258 | ifeq ($(findstring 4.4.,$(TEST_GCC)),) |
| 258 | 259 | #if we use new tools |
| 259 | 260 | LDFLAGS += -static-libstdc++ |
| 260 | 261 | endif |
trunk/src/osd/sdl/sdl.mak
| r20575 | r20576 | |
| 436 | 436 | # TEST_GCC for GCC version-specific stuff |
| 437 | 437 | #------------------------------------------------- |
| 438 | 438 | |
| 439 | # TODO: needs to use $(CC) |
| 439 | 440 | TEST_GCC = $(shell gcc --version) |
| 440 | 441 | |
| 441 | | ifeq ($(findstring 4.7,$(TEST_GCC)),4.7) |
| 442 | | CCOMFLAGS += -Wno-narrowing -Wno-attributes |
| 443 | | endif |
| 444 | | |
| 445 | 442 | # Ubuntu 12.10 GCC 4.7.2 autodetect |
| 446 | 443 | ifeq ($(findstring 4.7.2-2ubuntu1,$(TEST_GCC)),4.7.2-2ubuntu1) |
| 447 | 444 | GCC46TST = $(shell which g++-4.6 2>/dev/null) |
| r20575 | r20576 | |
| 450 | 447 | endif |
| 451 | 448 | CC = @gcc-4.6 |
| 452 | 449 | LD = @g++-4.6 |
| 450 | TEST_GCC = $(shell gcc-4.6 --version) |
| 453 | 451 | endif |
| 454 | 452 | |
| 453 | ifeq ($(findstring 4.7.,$(TEST_GCC)),4.7.) |
| 454 | CCOMFLAGS += -Wno-narrowing -Wno-attributes |
| 455 | endif |
| 456 | |
| 455 | 457 | #------------------------------------------------- |
| 456 | 458 | # Unix |
| 457 | 459 | #------------------------------------------------- |