rebuild of glibc-2.3.0 for kfreeBSD

Aurelien Jarno aurelien at aurel32.net
Fri Nov 18 09:27:18 UTC 2005


On Fri, Nov 18, 2005 at 05:00:33AM +0100, Aurelien Jarno wrote:
> On Thu, Nov 17, 2005 at 06:46:57PM +0100, Robert Millan wrote:
> > On Thu, Nov 17, 2005 at 03:15:45PM +0100, Petr Salinger wrote:
> > > > If it does, then I don't understand why
> > > > it doesn't for us, since we use the same config file in gcc sources (see
> > > > [gcc]/gcc/config/linux.h and [gcc]/gcc/config/i386/linux.h).
> > > 
> > > Thanks for pointer ;-)
> > > 
> > > gcc/config/i386/linux.h:
> > > 
> > > [...]
> > >             builtin_define ("__PIC__");         \
> > >             builtin_define ("__pic__");         \
> > > [...]
> > > gcc/config/kfreebsd-gnu.h:
> > > 
> > > [...]
> > > 
> > > Now it is obvious.
> > 
> > Ah, I see.  But I wonder why they have this in i386/ directory.  Maybe we should
> > do the same and move the pre-processor builtin blurb to i386/kfreebsd-gnu.h too?
> > 

Ok, the problems actually comes from me. gcc-3.4 and gcc-4.0 defines
-fPIC in i386/linux.h and we are including this file from gcc-config.

When I ported the latest gcc-3.3 to kfreebsd-i386, I used the patch for
gcc-3.4 as a reference, but the place where the fPIC flag is handled has
changed.

I am currently rebuilding gcc-3.3 on my system with a patch, if
everything is ok, I'll upload it and send the patch to doko.

Aurelien

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32 at debian.org         | aurelien at aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net



More information about the Glibc-bsd-devel mailing list