- gcc-2.95 doesn't support -static-libgcc
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 21 Sep 2006 11:54:51 +0000 (11:54 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 21 Sep 2006 11:54:51 +0000 (11:54 -0000)
- remove Winline

Rules.mak

index d8614e625706d852d05c0aa727618755226c6cf6..e0704989b1f01d078f09cf920a802e64362d73cc 100644 (file)
--- a/Rules.mak
+++ b/Rules.mak
@@ -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:=