diff --git a/libreoffice.spec b/libreoffice.spec index 0017c72..27a07c6 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -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