This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] glibc / uclibc / bionic switch vs. non-Linux, GNU-based systems


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

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]