summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/boost/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/boost/package.py b/var/spack/repos/builtin/packages/boost/package.py
index 094a96954c..3b677783a0 100644
--- a/var/spack/repos/builtin/packages/boost/package.py
+++ b/var/spack/repos/builtin/packages/boost/package.py
@@ -367,6 +367,12 @@ class Boost(Package):
cxxflags.append('-stdlib=libc++')
options.extend(['toolset=clang',
'linkflags="-stdlib=libc++"'])
+ elif spec.satisfies('%xl') or spec.satisfies('%xl_r'):
+ # see also: https://lists.boost.org/boost-users/2019/09/89953.php
+ # the cxxstd setting via spack is not sufficient to drive the
+ # change into boost compilation
+ if spec.variants['cxxstd'].value == '11':
+ cxxflags.append('-std=c++11')
if cxxflags:
options.append('cxxflags="{0}"'.format(' '.join(cxxflags)))