summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2021-08-16 09:34:59 +0200
committerGitHub <noreply@github.com>2021-08-16 09:34:59 +0200
commitde0d618730f89488c99bf623485c01b6e32834cd (patch)
tree5a7f1801a11c0f6385119faf8b8efc11c873e024
parent2ccbc00fd9565d1caba88468d1f56e19ca16e5bf (diff)
downloadspack-de0d618730f89488c99bf623485c01b6e32834cd.tar.gz
spack-de0d618730f89488c99bf623485c01b6e32834cd.tar.bz2
spack-de0d618730f89488c99bf623485c01b6e32834cd.tar.xz
spack-de0d618730f89488c99bf623485c01b6e32834cd.zip
libiconv: add libs variant to allow share and static builds (#25357)
-rw-r--r--var/spack/repos/builtin/packages/libiconv/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libiconv/package.py b/var/spack/repos/builtin/packages/libiconv/package.py
index 8343d6e68c..7bd1649d93 100644
--- a/var/spack/repos/builtin/packages/libiconv/package.py
+++ b/var/spack/repos/builtin/packages/libiconv/package.py
@@ -17,6 +17,9 @@ class Libiconv(AutotoolsPackage, GNUMirrorPackage):
version('1.15', sha256='ccf536620a45458d26ba83887a983b96827001e92a13847b45e4925cc8913178')
version('1.14', sha256='72b24ded17d687193c3366d0ebe7cde1e6b18f0df8c55438ac95be39e8a30613')
+ variant('libs', default='shared,static', values=('shared', 'static'),
+ multi=True, description='Build shared libs, static libs or both')
+
# We cannot set up a warning for gets(), since gets() is not part
# of C11 any more and thus might not exist.
patch('gets.patch', when='@1.14')
@@ -27,6 +30,8 @@ class Libiconv(AutotoolsPackage, GNUMirrorPackage):
def configure_args(self):
args = ['--enable-extra-encodings']
+ args += self.enable_or_disable('libs')
+
# A hack to patch config.guess in the libcharset sub directory
copy('./build-aux/config.guess',
'libcharset/build-aux/config.guess')