extrae: fix import and issue with pthread (#24220)

This commit is contained in:
Hervé Yviquel 2021-06-11 05:12:18 -03:00 committed by GitHub
parent eefcd3d00d
commit a83b75b878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@
# #
# SPDX-License-Identifier: (Apache-2.0 OR MIT) # SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
from spack import * from spack import *
# typical working line with extrae 3.0.1 # typical working line with extrae 3.0.1
@ -109,9 +110,12 @@ def configure_args(self):
make.add_default_arg("CXXFLAGS=%s" % self.compiler.cxx11_flag) make.add_default_arg("CXXFLAGS=%s" % self.compiler.cxx11_flag)
args.append("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 # 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) return(args)