rebuild of glibc-2.3.0 for kfreeBSD

Robert Millan rmh at aybabtu.com
Thu Nov 17 17:46:57 UTC 2005


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?

Btw, does this affect gcc-4.0 ?

> But as path /usr/src/kfreebsd5-headers/ is hardcoded on some places, 
> (i.e. /usr/include/sys/mount.h contains #include "/usr/src/kfreebsd5-headers/sys/mount.h")
> it was easier for me to simply fix one file and rebuild libc.

Ah, yes.  This is a dirty hack of mine, to include kFreeBSD's sys/mount.h
instead of Glibc's.  Any idea on how to do it better?

-- 
Robert Millan



More information about the Glibc-bsd-devel mailing list