This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Darwin multilibs
On Sun, May 25, 2003 at 10:02:50AM -0700, Dara Hazeghi wrote:
>
> --- Geoff Keating <geoffk@geoffk.org> wrote:
> > Dara Hazeghi <dhazeghi@yahoo.com> writes:
> >
> > > Hello,
> > >
> > > is there any reason we're still building
> > soft-float libs on Darwin
> > > still? Stan Shebs mentioned in a message back in
> > November
> > > (http://gcc.gnu.org/ml/gcc/2002-04/msg01549.html)
> > that multilibs
> > > weren't strictly necessary on Darwin. Would a
> > patch disabling them
> > > then be welcome? Thanks,
> >
> > I believe that soft-float is used for the kernel and
> > drivers.
>
> Fair enough. But what about for other libraries than
> libgcc2.a. With a checkout of mainline as of last
> night, the following are other multilibbed:
> libfrtbegin.a
> libg2c.a
> libiberty.a
> libstdc++.a
> libsupc++.a
>
> Do these also need to be built as soft-float for the
> benefit of the kernel? Thanks,
Here is my old patch for Linux/ppc. You may borrow it for Darwin.
H.J.
---
2002-09-17 H.J. Lu <hjl@gnu.org>
* config.gcc: Updated.
2001-12-27 H.J. Lu <hjl@gnu.org>
* config.gcc (powerpc-*-linux-gnualtivec*): Always set
enable_multilib to yes.
(powerpc-*-linux*): Likewise.
--- gcc/config.gcc.ppc Tue Sep 17 09:59:39 2002
+++ gcc/config.gcc Tue Sep 17 10:02:14 2002
@@ -2072,11 +2072,17 @@ powerpc-*-linux-gnualtivec*)
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h"
out_file=rs6000/rs6000.c
tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
+ # We always enable mutilib for kernel compile as well as
+ # compiling crtbeginS.o and crtendS.o with -fPIC
+ enable_multilib=yes
;;
powerpc-*-linux*)
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"
out_file=rs6000/rs6000.c
tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm"
+ # We always enable mutilib for kernel compile as well as
+ # compiling crtbeginS.o and crtendS.o with -fPIC
+ enable_multilib=yes
;;
powerpc-*-gnu-gnualtivec*)
tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h rs6000/gnu.h"