13
0

Add workaround to compile w/c++17 and old boost on macOS

This can be removed once the buildstack has been updated to
use recent boost.
This commit is contained in:
Robin Gareus 2024-09-15 00:19:26 +02:00
parent e299635511
commit 9f438aa773
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -590,6 +590,9 @@ int main() { return 0; }''',
linker_flags.append('--stdlib=libstdc++')
# Prevents visibility issues in standard headers
conf.define("_DARWIN_C_SOURCE", 1)
# C++17 removes 'unary_function' and 'binary_function' this breaks older boost versions
# prior to boost 1.81.0
cxx_flags.append('-D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION')
else:
cxx_flags.append('-DBOOST_NO_AUTO_PTR')
cxx_flags.append('-DBOOST_BIND_GLOBAL_PLACEHOLDERS')