summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHervé Yviquel <hyviquel@gmail.com>2021-06-11 05:12:18 -0300
committerGitHub <noreply@github.com>2021-06-11 10:12:18 +0200
commita83b75b878b83540889a18ec2b09b881c5a10d10 (patch)
tree56722ff9b30371b2393218520d42a9685be0075c
parenteefcd3d00da60973355588e4484e1532712d7d99 (diff)
downloadspack-a83b75b878b83540889a18ec2b09b881c5a10d10.tar.gz
spack-a83b75b878b83540889a18ec2b09b881c5a10d10.tar.bz2
spack-a83b75b878b83540889a18ec2b09b881c5a10d10.tar.xz
spack-a83b75b878b83540889a18ec2b09b881c5a10d10.zip
extrae: fix import and issue with pthread (#24220)
-rw-r--r--var/spack/repos/builtin/packages/extrae/package.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/extrae/package.py b/var/spack/repos/builtin/packages/extrae/package.py
index d4531876e0..f16550569d 100644
--- a/var/spack/repos/builtin/packages/extrae/package.py
+++ b/var/spack/repos/builtin/packages/extrae/package.py
@@ -3,6 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+import os
from spack import *
# typical working line with extrae 3.0.1
@@ -109,9 +110,12 @@ class Extrae(AutotoolsPackage):
make.add_default_arg("CXXFLAGS=%s" % self.compiler.cxx11_flag)
args.append("CXXFLAGS=%s" % self.compiler.cxx11_flag)
- # This was added due to configure failure
+ # This was added due to:
+ # - configure failure
# https://www.gnu.org/software/gettext/FAQ.html#integrating_undefined
- args.append('LDFLAGS=-lintl')
+ # - linking error
+ # https://github.com/bsc-performance-tools/extrae/issues/57
+ args.append('LDFLAGS=-lintl -pthread')
return(args)