mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: C++ support!
Date: Thu, 1 Mar 2012 00:10:00 -0500	[thread overview]
Message-ID: <20120301051000.GA580@brightrain.aerifal.cx> (raw)

Hi all,

I'm pleased to announce that musl is now (as of current git) able to
support C++ programs. I've just built gcc 4.6.2 with C++ support,
including shared libgcc_s.so and libstdc++.so, and everything seems to
work as expected.

In order to get libstdc++ to build, the config/os/gnu-linux directory
needs to be removed and replaced with a symlink to (or copy of) the
contents of config/os/generic. This is to remove the
glibc-locale-specific bit-peeking hacks that depend on glibc's
implementation of ctype.h.

You may also encounter the libstdc++ configure script complaining that
it cannot run programs produced by the newly-build gcc compiler. This
can be worked around by convincing the build process that you're
building a cross-compiler or by adding the in-build-tree path to
libgcc_s.so.1 to the LD_LIBRARY_PATH.

I have not tried building any major C++ software, only trivial test
programs, so I would welcome reports on whether real-world programs
work as expected.


Rich


             reply	other threads:[~2012-03-01  5:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-01  5:10 Rich Felker [this message]
2013-02-19 19:24 ` Aaron Michaux
2013-02-20  1:08   ` Rich Felker

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=20120301051000.GA580@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --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).