[Bf-blender-cvs] [39fb33f0b7a] master: Fix macOS build warnings about Boost symbol visibility

Brecht Van Lommel noreply at git.blender.org
Sat Feb 15 13:44:40 CET 2020


Commit: 39fb33f0b7a848c5e77d00499837b58a73a7e146
Author: Brecht Van Lommel
Date:   Sat Feb 15 12:52:35 2020 +0100
Branches: master
https://developer.blender.org/rB39fb33f0b7a848c5e77d00499837b58a73a7e146

Fix macOS build warnings about Boost symbol visibility

The default in Boost changed from global to hidden, but other libraries do
not use hidden symbols which gives warnings at link time on macOS.

===================================================================

M	build_files/build_environment/cmake/boost.cmake

===================================================================

diff --git a/build_files/build_environment/cmake/boost.cmake b/build_files/build_environment/cmake/boost.cmake
index 9a4e6d25c23..94c649e9109 100644
--- a/build_files/build_environment/cmake/boost.cmake
+++ b/build_files/build_environment/cmake/boost.cmake
@@ -44,7 +44,7 @@ if(WIN32)
 elseif(APPLE)
   set(BOOST_CONFIGURE_COMMAND ./bootstrap.sh)
   set(BOOST_BUILD_COMMAND ./b2)
-  set(BOOST_BUILD_OPTIONS toolset=darwin cxxflags=${PLATFORM_CXXFLAGS} linkflags=${PLATFORM_LDFLAGS} --disable-icu boost.locale.icu=off)
+  set(BOOST_BUILD_OPTIONS toolset=darwin cxxflags=${PLATFORM_CXXFLAGS} linkflags=${PLATFORM_LDFLAGS} visibility=global --disable-icu boost.locale.icu=off)
   set(BOOST_HARVEST_CMD echo .)
   set(BOOST_PATCH_COMMAND echo .)
 else()



More information about the Bf-blender-cvs mailing list