2003-11-02 23:25:26 +01:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
# glibc cannot have itself in its rpath.
|
|
|
|
export NIX_NO_SELF_RPATH=1
|
|
|
|
. $stdenv/setup || exit 1
|
|
|
|
|
|
|
|
tar xvfj $glibcSrc || exit 1
|
|
|
|
(cd glibc-* && tar xvfj $linuxthreadsSrc) || exit 1
|
|
|
|
|
|
|
|
(cd glibc-* && patch -p1 < $vaargsPatch) || exit 1
|
|
|
|
|
|
|
|
mkdir build || exit 1
|
|
|
|
cd build || exit 1
|
|
|
|
LDFLAGS=-Wl,-S ../glibc-*/configure --prefix=$out --enable-add-ons --disable-profile || exit 1
|
|
|
|
|
|
|
|
make || exit 1
|
|
|
|
make install || exit 1
|
2004-03-08 19:29:08 +01:00
|
|
|
#make localedata/install-locales || exit 1
|
2003-11-02 23:25:26 +01:00
|
|
|
strip -S $out/lib/*.a $out/lib/*.so $out/lib/gconv/*.so
|
|
|
|
strip -s $out/bin/* $out/sbin/* $out/libexec/*
|
|
|
|
|
|
|
|
ln -sf /etc/ld.so.cache $out/etc/ld.so.cache || exit 1
|
|
|
|
|
|
|
|
(cd $out/include && ln -s $kernelHeaders/include/* .) || exit 1
|
|
|
|
|
|
|
|
exit 0
|