[PATCH] glibc / uclibc / bionic switch vs. non-Linux, GNU-based systems
Thomas Schwinge
thomas@codesourcery.com
Fri Dec 10 12:34:00 GMT 2010
Hallo!
On 2010-12-08 16:33, Joseph S. Myers wrote:
> This alternative patch limits use of linux.opt to those targets for
> which it is relevant - that is, *-*-linux* (systems using the Linux
> kernel and an MMU-based ABI), as those are the systems for which
> alternative libcs may be available withing a single compiler
> configuration.
I reviewed this patch (with Joseph's additional change to not duplicate
the DEFAULT_LIBC definition in certain cases), and it appears correct to
me. (I cannot formally approve it, however.)
I also tested this one instead of my original patch, and successfully
built GCC natively on i686 GNU/Hurd.
> 2010-12-08 Joseph Myers <joseph@codesourcery.com>
>
> * config/alpha/linux.h (OPTION_GLIBC): Define differently if
> SINGLE_LIBC.
> * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC):
> Define differently if SINGLE_LIBC.
> * config/rs6000/linux.h (OPTION_GLIBC): Define differently if
> SINGLE_LIBC.
> * config/rs6000/linux64.h (OPTION_GLIBC): Define differently if
> SINGLE_LIBC.
> * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
> *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu): Define
> DEFAULT_LIBC and SINGLE_LIBC instead of OPTION_GLIBC.
s%DEFAULT_LIBC and %% as per your follow-up email.
> (*-*-uclinux*): Define DEFAULT_LIBC and SINGLE_LIBC.
> (bfin*-uclinux*, moxie-*-uclinux*, m68k-*-uclinux*): Don't define
> DEFAULT_LIBC or use linux.opt.
Grüße,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101210/666e0bf4/attachment.sig>
More information about the Gcc-patches
mailing list