diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-12-05 21:40:04 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-12-06 07:26:31 +0100 |
commit | 90d2155912bcee40377620d4836726041a72d537 (patch) | |
tree | 4a83922ab7dd3a15bfccf0ad48ffd41651785742 /external/boost | |
parent | e754d0931ca75403647cc16100edd98e7e5ceadb (diff) |
Work around latest Boost 1.65.1 still using deprecated std::auto_ptr
...in various places, which is gone by default at least from recent libc++ in
C++17 mode. So bring it back there for now, until Boost is fixed.
Change-Id: I0b3128d114ab2b5693a84bdc7d2b9b9b9b5c3c76
Reviewed-on: https://gerrit.libreoffice.org/45910
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'external/boost')
-rw-r--r-- | external/boost/StaticLibrary_boost_locale.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/external/boost/StaticLibrary_boost_locale.mk b/external/boost/StaticLibrary_boost_locale.mk index 6c185644569a..b6734d149c14 100644 --- a/external/boost/StaticLibrary_boost_locale.mk +++ b/external/boost/StaticLibrary_boost_locale.mk @@ -18,6 +18,12 @@ $(eval $(call gb_StaticLibrary_add_defs,boost_locale,\ -DBOOST_ALL_NO_LIB -DBOOST_LOCALE_NO_WINAPI_BACKEND -DBOOST_LOCALE_NO_POSIX_BACKEND -DBOOST_USE_WINDOWS_H \ )) +# Needed when building against libc++ in C++17 mode, as Boost 1.65.1 +# workdir/UnpackedTarball/boost/boost/locale/generator.hpp contains "std::auto_ptr<data> d;": +$(eval $(call gb_StaticLibrary_add_defs,boost_locale, \ + -D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR \ +)) + $(eval $(call gb_StaticLibrary_use_external,boost_locale,boost_headers)) $(eval $(call gb_StaticLibrary_set_generated_cxx_suffix,boost_locale,cpp)) |