Skip to content

Commit

Permalink
Merge pull request #1190 from codicodi/boost-dyn-link-fix
Browse files Browse the repository at this point in the history
[boost] forcibly undefine BOOST_ALL_DYN_LINK in static builds
  • Loading branch information
ras0219-msft authored May 31, 2017
2 parents 2b26822 + 72eb21a commit 42450bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ports/boost/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Source: boost
Version: 1.64-4
Version: 1.64-5
Description: Peer-reviewed portable C++ source libraries
Build-Depends: zlib, bzip2
3 changes: 3 additions & 0 deletions ports/boost/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ file(
file(APPEND ${CURRENT_PACKAGES_DIR}/include/boost/config/user.hpp
"\n#define BOOST_ALL_NO_LIB\n"
)
file(APPEND ${CURRENT_PACKAGES_DIR}/include/boost/config/user.hpp
"\n#undef BOOST_ALL_DYN_LINK\n"
)

if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
file(APPEND ${CURRENT_PACKAGES_DIR}/include/boost/config/user.hpp
Expand Down

0 comments on commit 42450bf

Please sign in to comment.