summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-12-07 15:55:21 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2015-12-07 15:55:21 -0800
commitfcabf0ef0dc04a990251b266a66a3bf2d50a0185 (patch)
treeac29035e1176c80751344ddfa93aa4479002d202 /var
parent1a22a507d64f45f4aa2a1dae03604ba83cfb9736 (diff)
parentf8e046bb33b23890e1e3bf92866bd6ea5cefbbec (diff)
downloadspack-fcabf0ef0dc04a990251b266a66a3bf2d50a0185.tar.gz
spack-fcabf0ef0dc04a990251b266a66a3bf2d50a0185.tar.bz2
spack-fcabf0ef0dc04a990251b266a66a3bf2d50a0185.tar.xz
spack-fcabf0ef0dc04a990251b266a66a3bf2d50a0185.zip
Merge pull request #222 from mplegendre/bugfix/github-203-gcc5-builds
Fix issue with gcc 5.x not building on RHEL6
Diffstat (limited to 'var')
-rw-r--r--var/spack/packages/gcc/package.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/var/spack/packages/gcc/package.py b/var/spack/packages/gcc/package.py
index a49a1348aa..f58c1bd416 100644
--- a/var/spack/packages/gcc/package.py
+++ b/var/spack/packages/gcc/package.py
@@ -79,8 +79,9 @@ class Gcc(Package):
"--with-gnu-as",
"--with-quad"]
# Binutils
- binutils_options = ["--with-stage1-ldflags=%s" % self.rpath_args,
- "--with-boot-ldflags=%s" % self.rpath_args,
+ static_bootstrap_flags = "-static-libstdc++ -static-libgcc"
+ binutils_options = ["--with-stage1-ldflags=%s %s" % (self.rpath_args, static_bootstrap_flags),
+ "--with-boot-ldflags=%s %s" % (self.rpath_args, static_bootstrap_flags),
"--with-ld=%s/bin/ld" % spec['binutils'].prefix,
"--with-as=%s/bin/as" % spec['binutils'].prefix]
options.extend(binutils_options)
@@ -89,11 +90,13 @@ class Gcc(Package):
isl_options = ["--with-isl=%s" % spec['isl'].prefix]
options.extend(isl_options)
- # Rest of install is straightforward.
- configure(*options)
- make()
- make("install")
-
+ with working_dir('spack-build', create=True):
+ # Rest of install is straightforward.
+ configure = Executable('../configure')
+ configure(*options)
+ make()
+ make("install")
+
self.write_rpath_specs()