From f8a6799e671b8b2d508bcbd847aa1d97b2b1f0ee Mon Sep 17 00:00:00 2001 From: Mikael Simberg Date: Tue, 14 Jun 2022 16:04:53 +0200 Subject: apex: fix compilation with binutils (#30638) --- var/spack/repos/builtin/packages/apex/package.py | 4 ++++ 1 file changed, 4 insertions(+) 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)) -- cgit v1.2.3-70-g09d2