Skip to content

Commit 68e7cf7

Browse files
committed
Restore DBOOST_ALL_DYN_LINK for non-msvc builds (lower boost version).
1 parent 5be054d commit 68e7cf7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

builds/cmake/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ if (enable-ndebug)
126126
add_definitions( -DNDEBUG )
127127
endif()
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+
129135
if (BUILD_SHARED_LIBS)
130136
set( Boost_USE_STATIC_LIBS "off" )
131137
else()

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ AC_ARG_ENABLE([ndebug],
109109
AC_MSG_RESULT([$enable_ndebug])
110110
AS_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
#------------------------------------------------------------------------------
114118
AC_MSG_CHECKING([--enable-isystem option])

0 commit comments

Comments
 (0)