File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,12 @@ if (enable-ndebug)
126126 add_definitions ( -DNDEBUG )
127127endif ()
128128
129+ # Inherit -Denable-shared and define BOOST_ALL_DYN_LINK.
130+ #------------------------------------------------------------------------------
131+ if (BUILD_SHARED_LIBS )
132+ add_definitions ( -DBOOST_ALL_DYN_LINK )
133+ endif ()
134+
129135if (BUILD_SHARED_LIBS )
130136 set ( Boost_USE_STATIC_LIBS "off" )
131137else ()
Original file line number Diff line number Diff line change @@ -109,6 +109,10 @@ AC_ARG_ENABLE([ndebug],
109109AC_MSG_RESULT ( [ $enable_ndebug] )
110110AS_CASE ( [ ${enable_ndebug}] , [ yes] , AC_DEFINE ( [ NDEBUG] ) )
111111
112+ # Inherit --enable-shared and define BOOST_ALL_DYN_LINK.
113+ # ------------------------------------------------------------------------------
114+ AS_CASE ( [ ${enable_shared}] , [ yes] , AC_DEFINE ( [ BOOST_ALL_DYN_LINK] ) )
115+
112116# Implement --enable-isystem.
113117# ------------------------------------------------------------------------------
114118AC_MSG_CHECKING ( [ --enable-isystem option] )
You can’t perform that action at this time.
0 commit comments