[MacPorts] #69119: boost: enable static libraries by default
MacPorts
noreply at macports.org
Sun Jan 21 19:39:32 UTC 2024
#69119: boost: enable static libraries by default
-------------------------------------------------+-------------------------
Reporter: mohd-akram | Owner: (none)
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: boost169, boost171, boost176, |
boost178, boost181 |
-------------------------------------------------+-------------------------
Comment (by mohd-akram):
Thanks for pointing to dylibbundler, that should come in handy. Static
builds are becoming more popular due to newer languages such as Go and
Rust, where the expectation is a single binary that you can drop into
/usr/local/bin, or anywhere else. But I think the simpler reason for me is
that things should "just work" as much as possible. In this case, the
project I was building used CMake and the `Boost_USE_STATIC_LIBS` flag
that's in turn read by `FindBoost.cmake`, which comes with CMake. Yet,
while both CMake and Boost in this case are provided by MacPorts and the
project uses a standard and supported build flag, the build fails with a
cryptic error that it can't "find" Boost, when really it can't find the
static version. So I think if a port naturally supports building both
dynamic and static libraries, and there is sanctioned use of the static
versions in the ecosystem, we should support that.
--
Ticket URL: <https://trac.macports.org/ticket/69119#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list