summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorCarson Woods <carsonwoods@users.noreply.github.com>2020-03-29 23:05:11 -0500
committerGitHub <noreply@github.com>2020-03-29 23:05:11 -0500
commit3cbc26cfa6a3d23148e2ce62d6c80accf7fa3ca6 (patch)
treebbff662bfd9b8355e341c4de79c82aea60a60c48 /var
parent3310eaab99e1ceee270a70cac6fe88831d65040a (diff)
downloadspack-3cbc26cfa6a3d23148e2ce62d6c80accf7fa3ca6.tar.gz
spack-3cbc26cfa6a3d23148e2ce62d6c80accf7fa3ca6.tar.bz2
spack-3cbc26cfa6a3d23148e2ce62d6c80accf7fa3ca6.tar.xz
spack-3cbc26cfa6a3d23148e2ce62d6c80accf7fa3ca6.zip
Add additional configuration options for binutils (#15753)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/binutils/package.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/binutils/package.py b/var/spack/repos/builtin/packages/binutils/package.py
index 4a647e7e88..60cd9563fa 100644
--- a/var/spack/repos/builtin/packages/binutils/package.py
+++ b/var/spack/repos/builtin/packages/binutils/package.py
@@ -35,6 +35,9 @@ class Binutils(AutotoolsPackage, GNUMirrorPackage):
variant('libiberty', default=False, description='Also install libiberty.')
variant('nls', default=True, description='Enable Native Language Support')
variant('headers', default=False, description='Install extra headers (e.g. ELF)')
+ variant('lto', default=False, description='Enable lto.')
+ variant('ld', default=False, description='Enable ld.')
+ variant('interwork', default=False, description='Enable interwork.')
patch('cr16.patch', when='@:2.29.1')
patch('update_symbol-2.26.patch', when='@2.26')
@@ -68,6 +71,15 @@ class Binutils(AutotoolsPackage, GNUMirrorPackage):
'--with-sysroot=/',
]
+ if '+lto' in spec:
+ configure_args.append('--enable-lto')
+
+ if '+ld' in spec:
+ configure_args.append('--enable-ld')
+
+ if '+interwork' in spec:
+ configure_args.append('--enable-interwork')
+
if '+gold' in spec:
configure_args.append('--enable-gold')