From: Rashad Kanavath <mohammedrashadkm@gmail.com>
To: musl@lists.openwall.com
Subject: using musl with a c++ library.
Date: Tue, 29 Mar 2016 11:02:53 +0200 [thread overview]
Message-ID: <CANNqv9eg0cGOe=nWz=b+32-qZTrQBoqj5m0BBBUUUnj9Prb3mQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1146 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1488 bytes --]
next reply other threads:[~2016-03-29 9:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-29 9:02 Rashad Kanavath [this message]
2016-03-29 10:26 ` Shiz
2016-03-29 11:41 ` Rashad Kanavath
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CANNqv9eg0cGOe=nWz=b+32-qZTrQBoqj5m0BBBUUUnj9Prb3mQ@mail.gmail.com' \
--to=mohammedrashadkm@gmail.com \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).