projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e141cb7
)
scons: only use -Wno-pointer-sign with gcc >= 4.3
author
Nathan Binkert
<nate@binkert.org>
Sat, 6 Dec 2008 22:18:18 +0000
(14:18 -0800)
committer
Nathan Binkert
<nate@binkert.org>
Sat, 6 Dec 2008 22:18:18 +0000
(14:18 -0800)
ext/libelf/SConscript
patch
|
blob
|
history
diff --git
a/ext/libelf/SConscript
b/ext/libelf/SConscript
index d266d20a9f96d26b2f5420206f43d6411cca9a41..18d1100a49c60738eeec35b10dff62de97f0174a 100644
(file)
--- a/
ext/libelf/SConscript
+++ b/
ext/libelf/SConscript
@@
-88,7
+88,11
@@
ElfFile('libelf_fsize.c')
ElfFile('libelf_msize.c')
m4env = env.Copy()
-m4env.Append(CCFLAGS=['-Wno-pointer-sign', '-Wno-implicit'])
+if env['GCC']:
+ major,minor,dot = [ int(x) for x in env['CXXVERSION'].split('.')]
+ if major >= 4:
+ m4env.Append(CCFLAGS=['-Wno-pointer-sign'])
+m4env.Append(CCFLAGS=['-Wno-implicit'])
del m4env['CPPPATH']
# If we have gm4 use it