Closed JBouwer closed 7 months ago
A workaround to achieve the above can be to:
i.e.
# Intermediary Static Library
lib Boost_StackTrace
: # Sources
Boost_StackTrace.cpp
# /boost/stacktrace//boost_stacktrace_noop
/boost/stacktrace//boost_stacktrace_basic
# ...
: # Build Requirements
<link>static
: # Default Build
: # Usage Requirements
;
# Destination Dynamic Library
lib MyTestingLib
: # Sources
...
Boost_StackTrace
...
: # Requirements
...
: # Default Build
<link>shared
: # Usage Requirements
<link>shared:<define>BOOST_STACKTRACE_LINK
<link>shared:<define>BOOST_STACKTRACE_DYN_LINK
;
and with Boost_StackTrace.cpp
being just:
#include <boost/stacktrace.hpp>
Many thanks for the bugreport and fix hints!
From build/Jamfile.v2:
Is there a reason why
<visibility>hidden
is a requirement?i.e. Won't
default-build
be more suitable?Thus allowing linking to the various libraries via b2; E.g.
Currently a target like the above fail to link with "
Undefined symbols ...
".