On Apple systems, libc++ is the default C++ library^1. Trying to compile a binary example using rust_icu with the static feature enabled will currently fail on Apple systems with the following error:
= note: ld: library 'stdc++' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This patch links against libc++ on Apple and FreeBSD systems when the static features is enabled.
Note: maybe adding a CI job that builds on macOS in static mode is also a good idea?
On Apple systems,
libc++
is the default C++ library^1. Trying to compile a binary example usingrust_icu
with thestatic
feature enabled will currently fail on Apple systems with the following error:This patch links against
libc++
on Apple and FreeBSD systems when thestatic
features is enabled.Note: maybe adding a CI job that builds on macOS in
static
mode is also a good idea?