Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 29 Mar 2016 11:02:53 +0200
From: Rashad Kanavath <mohammedrashadkm@...il.com>
To: musl@...ts.openwall.com
Subject: using musl with a c++ library.

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++ ?.


Also Is it possible to distribute musl with an application package.
Currently I have a self-extracting archive which uses an older version of
glibc. so it will run on any platform that has a glibc version higher that
it was build (2.4). If I use musl and is able to distribute it along with
my application package, Then I don't have to rely on anything other than
linux kernel version on the target platform.


-- 
Regards,
   Rashad

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.