summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/binutils/package.py
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2021-05-12 12:31:02 +0200
committerGitHub <noreply@github.com>2021-05-12 12:31:02 +0200
commitb768d7bb09b6913bd1885e7e57654a75bba6fdf3 (patch)
treef510ed5991b6de392439bb88cf3db411fdc1ea21 /var/spack/repos/builtin/packages/binutils/package.py
parente7219db93dbb606a77f9ef291780284c05cb9764 (diff)
downloadspack-b768d7bb09b6913bd1885e7e57654a75bba6fdf3.tar.gz
spack-b768d7bb09b6913bd1885e7e57654a75bba6fdf3.tar.bz2
spack-b768d7bb09b6913bd1885e7e57654a75bba6fdf3.tar.xz
spack-b768d7bb09b6913bd1885e7e57654a75bba6fdf3.zip
lzo, lz4, xz, binutils: add libs multi-valued variant (#23474)
Diffstat (limited to 'var/spack/repos/builtin/packages/binutils/package.py')
-rw-r--r--var/spack/repos/builtin/packages/binutils/package.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/binutils/package.py b/var/spack/repos/builtin/packages/binutils/package.py
index 3edab97c8f..91c80f67c9 100644
--- a/var/spack/repos/builtin/packages/binutils/package.py
+++ b/var/spack/repos/builtin/packages/binutils/package.py
@@ -39,6 +39,8 @@ class Binutils(AutotoolsPackage, GNUMirrorPackage):
variant('ld', default=False, description='Enable ld.')
variant('gas', default=False, description='Enable as assembler.')
variant('interwork', default=False, description='Enable interwork.')
+ variant('libs', default='shared,static', values=('shared', 'static'),
+ multi=True, description='Build shared libs, static libs or both')
patch('cr16.patch', when='@:2.29.1')
patch('update_symbol-2.26.patch', when='@2.26')
@@ -78,13 +80,13 @@ class Binutils(AutotoolsPackage, GNUMirrorPackage):
'--disable-dependency-tracking',
'--disable-werror',
'--enable-multilib',
- '--enable-shared',
'--enable-64-bit-bfd',
'--enable-targets=all',
'--with-system-zlib',
'--with-sysroot=/',
]
+ args += self.enable_or_disable('libs')
args += self.enable_or_disable('lto')
args += self.enable_or_disable('ld')
args += self.enable_or_disable('gas')