summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Rood <jon.rood@nrel.gov>2021-05-13 19:21:40 -0600
committerGitHub <noreply@github.com>2021-05-13 18:21:40 -0700
commit0cc42acbbd0ae628b6e72ead02287930eef738b2 (patch)
tree22b26ccce9b8167aba3edacaa0ebb450a56ee24c
parent8b25bdcf4d65f49f2d75e8489a22c7e329a9ff48 (diff)
downloadspack-0cc42acbbd0ae628b6e72ead02287930eef738b2.tar.gz
spack-0cc42acbbd0ae628b6e72ead02287930eef738b2.tar.bz2
spack-0cc42acbbd0ae628b6e72ead02287930eef738b2.tar.xz
spack-0cc42acbbd0ae628b6e72ead02287930eef738b2.zip
Add -DSTK_NO_BOOST_STACKTRACE to compile line in trilinos if +stk and on a Mac. (#23625)
-rw-r--r--var/spack/repos/builtin/packages/trilinos/package.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/trilinos/package.py b/var/spack/repos/builtin/packages/trilinos/package.py
index 1012055549..7edfb8d453 100644
--- a/var/spack/repos/builtin/packages/trilinos/package.py
+++ b/var/spack/repos/builtin/packages/trilinos/package.py
@@ -885,6 +885,8 @@ class Trilinos(CMakePackage, CudaPackage):
if sys.platform == 'darwin':
options.append(define('Trilinos_ENABLE_FEI', False))
+ if '+stk' in spec:
+ cxx_flags.extend(['-DSTK_NO_BOOST_STACKTRACE'])
if sys.platform == 'darwin' and macos_version() >= Version('10.12'):
# use @rpath on Sierra due to limit of dynamic loader