summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
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')