diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-09-21 11:54:51 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-09-21 11:54:51 +0000 |
commit | a5286433306e81df401db52b316c40f4c11e19ca (patch) | |
tree | 031b5c210df570729eaf40b09576418f5af31d49 /Rules.mak | |
parent | 116080a13a921a6f033f3fa63d054a9640875faf (diff) |
- gcc-2.95 doesn't support -static-libgcc
- remove Winline
Diffstat (limited to 'Rules.mak')
-rw-r--r-- | Rules.mak | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -175,8 +175,11 @@ CHECKED_CFLAGS+=$(call check_cc,$(CC),-Wshadow,) CHECKED_CFLAGS+=$(call check_cc,$(CC),-funsigned-char,) CHECKED_CFLAGS+=$(call check_cc,$(CC),-fno-builtin-strlen,) CHECKED_CFLAGS+=$(call check_cc,$(CC),-finline-limit=0,) -CHECKED_CFLAGS+=$(call check_cc,$(CC),-Winline,) -CHECKED_CFLAGS+=$(call check_cc,$(CC),-static-libgcc,) + +# gcc 2.95 exits with 0 for "unrecognized option" +ifeq ($(strip $(shell [ $(CC_MAJOR) -ge 3 ] ; echo $$?)),0) + CHECKED_CFLAGS+=$(call check_cc,$(CC),-static-libgcc,) +endif # Preemptively pin this too. PROG_CFLAGS:= |