diff options
author | Mikael Simberg <mikael.simberg@iki.fi> | 2022-06-14 16:04:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-14 16:04:53 +0200 |
commit | f8a6799e671b8b2d508bcbd847aa1d97b2b1f0ee (patch) | |
tree | ceefd8e4c6cbb2fb58ffa4e55eb8029807f51ccb | |
parent | 633ebd149c9365a2d8262b6a7615e217f0bf7bbc (diff) | |
download | spack-f8a6799e671b8b2d508bcbd847aa1d97b2b1f0ee.tar.gz spack-f8a6799e671b8b2d508bcbd847aa1d97b2b1f0ee.tar.bz2 spack-f8a6799e671b8b2d508bcbd847aa1d97b2b1f0ee.tar.xz spack-f8a6799e671b8b2d508bcbd847aa1d97b2b1f0ee.zip |
apex: fix compilation with binutils (#30638)
-rw-r--r-- | var/spack/repos/builtin/packages/apex/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/apex/package.py b/var/spack/repos/builtin/packages/apex/package.py index 78629c6875..1e1b9f6c9f 100644 --- a/var/spack/repos/builtin/packages/apex/package.py +++ b/var/spack/repos/builtin/packages/apex/package.py @@ -55,6 +55,7 @@ class Apex(CMakePackage): depends_on('zlib') depends_on('cmake@3.10.0:', type='build') depends_on('binutils@2.33:+libiberty+headers', when='+binutils') + depends_on('gettext', when='+binutils ^binutils+nls') depends_on('activeharmony@4.6:', when='+activeharmony') depends_on('activeharmony@4.6:', when='+plugins') depends_on('otf2@2.1:', when='+otf2') @@ -113,6 +114,9 @@ class Apex(CMakePackage): if '+binutils' in spec: args.append('-DBFD_ROOT={0}'.format(spec['binutils'].prefix)) + if '+binutils ^binutils+nls' in spec: + args.append('-DCMAKE_SHARED_LINKER_FLAGS=-lintl') + if '+otf2' in spec: args.append('-DOTF2_ROOT={0}'.format(spec['otf2'].prefix)) |