lkml.org 
[lkml]   [2006]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: cc-version not available to change EXTRA_CFLAGS
 On Sat, Jan 21, Olaf Hering wrote:

>
> I want to add a gcc version check for reiserfs, on akpms request.

This debug patch still doesnt work in 2.6.18-rc2:


make -kj 14 O=$O

scripts/gcc-version.sh: line 11: _c_flags: command not found
scripts/gcc-version.sh: line 12: _c_flags: command not found
+ '[' 0000 -lt 0500 ']'
+ echo -O1


---
fs/reiserfs/Makefile | 1 +
1 file changed, 1 insertion(+)

Index: linux-2.6.18-rc2/fs/reiserfs/Makefile
===================================================================
--- linux-2.6.18-rc2.orig/fs/reiserfs/Makefile
+++ linux-2.6.18-rc2/fs/reiserfs/Makefile
@@ -30,6 +30,7 @@ endif
ifeq ($(CONFIG_PPC32),y)
EXTRA_CFLAGS := -O1
endif
+EXTRA_CFLAGS += $(shell set -x ; if [ $(call cc-version) -lt 0500 ] ; then echo -O1 ; fi ;)

TAGS:
etags *.c
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-07-19 11:05    [W:0.112 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site