W/a old system boost being incompatible with C++17 which removed std::auto_ptr

This commit is contained in:
Mikhail Novosyolov 2020-04-01 01:38:04 +03:00
parent 1b2077412c
commit 9ff20671f2

View file

@ -2971,6 +2971,9 @@ export CCACHE_DIR=%{ccachedir}
export CXXFLAGS="$CXXFLAGS -stdlib=libc++ -nostdinc++ -I/usr/include/c++/v1 -Wno-unused-command-line-argument"
# Try to avoid overlinkg C code with libc++ by adjusting CXXFLAGS instead of LDFLAGS
export CXXFLAGS="$CXXFLAGS -Xlinker -lc++ -Xlinker -lc++abi"
# Workaround old system boost being incompatible with C++17 which removed std::auto_ptr
# https://github.com/TRIQS/triqs/issues/523#issuecomment-351960463
export CXXFLAGS="$CXXFLAGS -D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR"
%clang_gcc_wrapper
export CPP=""
%else