From: Bernhard Reutner-Fischer Date: Thu, 21 Sep 2006 11:54:51 +0000 (-0000) Subject: - gcc-2.95 doesn't support -static-libgcc X-Git-Tag: 1_4_0~645 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5286433306e81df401db52b316c40f4c11e19ca;p=platform%2Fupstream%2Fbusybox.git - gcc-2.95 doesn't support -static-libgcc - remove Winline --- diff --git a/Rules.mak b/Rules.mak index d8614e6..e070498 100644 --- 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:=