summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorlukebroskop <luke.roskop@hpe.com>2021-05-17 11:26:15 -0500
committerGitHub <noreply@github.com>2021-05-17 09:26:15 -0700
commitde8027a820fb24354a06946eb3c6c05cc45ad3a5 (patch)
tree99b5eddeeab6d535c48911915d7f1a27014c6eed /var
parentb462ccb565c9c5c7eae31c8d067ea96e12da9842 (diff)
downloadspack-de8027a820fb24354a06946eb3c6c05cc45ad3a5.tar.gz
spack-de8027a820fb24354a06946eb3c6c05cc45ad3a5.tar.bz2
spack-de8027a820fb24354a06946eb3c6c05cc45ad3a5.tar.xz
spack-de8027a820fb24354a06946eb3c6c05cc45ad3a5.zip
CrayPE fix for binutils (#23500)
Allow for multiple definitions at link time (for CrayPE) Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/binutils/package.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/binutils/package.py b/var/spack/repos/builtin/packages/binutils/package.py
index 91c80f67c9..30a069fa70 100644
--- a/var/spack/repos/builtin/packages/binutils/package.py
+++ b/var/spack/repos/builtin/packages/binutils/package.py
@@ -73,6 +73,14 @@ class Binutils(AutotoolsPackage, GNUMirrorPackage):
# --disable-ld flag
conflicts('~ld', '+gold')
+ def setup_build_environment(self, env):
+
+ if self.spec.satisfies('%cce'):
+ env.append_flags('LDFLAGS', '-Wl,-z,muldefs')
+
+ if '+nls' in spec:
+ env.append_flags('LDFLAGS', '-lintl')
+
def configure_args(self):
spec = self.spec
@@ -101,7 +109,6 @@ class Binutils(AutotoolsPackage, GNUMirrorPackage):
if '+nls' in spec:
args.append('--enable-nls')
- args.append('LDFLAGS=-lintl')
else:
args.append('--disable-nls')