diff options
author | cedricchevalier19 <cedric.chevalier@cea.fr> | 2020-07-06 20:02:35 +0200 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2020-07-10 13:05:49 -0700 |
commit | c8a83661c2c761c9de5ff30ae82aa79a635e5d64 (patch) | |
tree | d15dfcaddc2c19c0a33f78bc54beb99bee83a476 | |
parent | 4e4de51f0d4ac7b08cb30e5d7de7ec726432fbca (diff) | |
download | spack-c8a83661c2c761c9de5ff30ae82aa79a635e5d64.tar.gz spack-c8a83661c2c761c9de5ff30ae82aa79a635e5d64.tar.bz2 spack-c8a83661c2c761c9de5ff30ae82aa79a635e5d64.tar.xz spack-c8a83661c2c761c9de5ff30ae82aa79a635e5d64.zip |
Fix gcc + binutils compilation. (#9024)
* fix binutils deptype for gcc
binutils needs to be a run dependency of gcc
* Fix gcc+binutils build on RHEL7+
static-libstdc++ is not available with system gcc.
Anyway, as it is for bootstraping, we do not really care depending on
a shared libstdc++.
Co-authored-by: Michael Kuhn <michael@ikkoku.de>
-rw-r--r-- | var/spack/repos/builtin/packages/gcc/package.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/gcc/package.py b/var/spack/repos/builtin/packages/gcc/package.py index 4c822b1198..3072402dab 100644 --- a/var/spack/repos/builtin/packages/gcc/package.py +++ b/var/spack/repos/builtin/packages/gcc/package.py @@ -115,7 +115,7 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage): depends_on('zstd', when='@10:') depends_on('iconv', when='platform=darwin') depends_on('gnat', when='languages=ada') - depends_on('binutils~libiberty', when='+binutils') + depends_on('binutils~libiberty', when='+binutils', type=('build', 'link', 'run')) depends_on('zip', type='build', when='languages=java') depends_on('cuda', when='+nvptx') @@ -373,8 +373,6 @@ class Gcc(AutotoolsPackage, GNUMirrorPackage): # enable appropriate bootstrapping flags stage1_ldflags = str(self.rpath_args) boot_ldflags = stage1_ldflags + ' -static-libstdc++ -static-libgcc' - if '%gcc' in spec: - stage1_ldflags = boot_ldflags options.append('--with-stage1-ldflags=' + stage1_ldflags) options.append('--with-boot-ldflags=' + boot_ldflags) |