diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2014-09-27 09:08:34 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2014-09-27 09:08:34 -0400 |
commit | deb2200671d5b4856ca27d4286253db0d9e12a32 (patch) | |
tree | 9d626092cfc02b2841a4a2ae9c0dbddd62e768fc /SConstruct | |
parent | 4836aef1e4ab80ce9b11c6c4385c167b503bc782 (diff) | |
download | gem5-deb2200671d5b4856ca27d4286253db0d9e12a32.tar.xz |
scons: Address issues related to gcc 4.9.1
Fix a number few minor issues to please gcc 4.9.1. Removing the
'-fuse-linker-plugin' flag means no libraries are part of the LTO
process, but hopefully this is an acceptable loss, as the flag causes
issues on a lot of systems (only certain combinations of gcc, ld and
ar work).
Diffstat (limited to 'SConstruct')
-rwxr-xr-x | SConstruct | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/SConstruct b/SConstruct index 138df137f..883a52718 100755 --- a/SConstruct +++ b/SConstruct @@ -602,14 +602,12 @@ if main['GCC']: if not GetOption('no_lto'): # Pass the LTO flag when compiling to produce GIMPLE # output, we merely create the flags here and only append - # them later/ + # them later main['LTO_CCFLAGS'] = ['-flto=%d' % GetOption('num_jobs')] # Use the same amount of jobs for LTO as we are running - # scons with, we hardcode the use of the linker plugin - # which requires either gold or GNU ld >= 2.21 - main['LTO_LDFLAGS'] = ['-flto=%d' % GetOption('num_jobs'), - '-fuse-linker-plugin'] + # scons with + main['LTO_LDFLAGS'] = ['-flto=%d' % GetOption('num_jobs')] main.Append(TCMALLOC_CCFLAGS=['-fno-builtin-malloc', '-fno-builtin-calloc', '-fno-builtin-realloc', '-fno-builtin-free']) |