rebuild of glibc-2.3.0 for kfreeBSD
Aurelien Jarno
aurelien at aurel32.net
Fri Nov 18 04:00:33 UTC 2005
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?
>
> Btw, does this affect gcc-4.0 ?
It does not affect gcc-3.4 and gcc-4.0, maybe we can grab a fix from
there.
> > 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")
In the current tree of glibc 2.3.5, this should be fixed, and it has
been tested for at least the part which build. However, the fix are not
easily backportable.
> > 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?
IMHO, the easiest way is to get mount.h from our glibc 2.3.5 tree, I
have modified it so that it have the necessary parts from the kernel,
and the necessary ones from the glibc.
--
.''`. 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