mailing list of musl libc
 help / color / mirror / code / Atom feed
* C++ support!
@ 2012-03-01  5:10 Rich Felker
  2013-02-19 19:24 ` Aaron Michaux
  0 siblings, 1 reply; 3+ messages in thread
From: Rich Felker @ 2012-03-01  5:10 UTC (permalink / raw)
  To: musl

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-02-20  1:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-01  5:10 C++ support! Rich Felker
2013-02-19 19:24 ` Aaron Michaux
2013-02-20  1:08   ` Rich Felker

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).