How do I use musl with a c++ library.? Does anybody tried to use g++ using musl?
From musl FAQ,
Be aware that, "out of the box", the wrapper only supports C
applications, not C++. This is because the C++ libraries and headers
are missing from the musl include/library path. The
existing
libstdc++ is actually compatible with musl in most
cases and could be used by copying it into the musl library path, but
the C++ header files are usually not compatible. One option may be
rebuilding just libstdc++ against musl; however, if C++ support is
needed, it's recommended just to build a native toolchain targetting
musl.
should I rebuild just libstdc++ using musl-gcc wrapper script and use that libstdc++ ?.