2003-07-24 17:15:48 +02:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
export PATH=/bin:/usr/bin
|
|
|
|
|
|
|
|
tar xvfj $glibcSrc || exit 1
|
|
|
|
(cd glibc-* && tar xvfj $linuxthreadsSrc) || exit 1
|
|
|
|
|
|
|
|
mkdir build || exit 1
|
|
|
|
cd build || exit 1
|
2003-07-25 16:59:22 +02:00
|
|
|
LDFLAGS=-Wl,-S ../glibc-*/configure --prefix=$out --enable-add-ons --disable-profile || exit 1
|
2003-07-24 17:15:48 +02:00
|
|
|
|
|
|
|
make || exit 1
|
|
|
|
make install || exit 1
|
2003-07-25 16:59:22 +02:00
|
|
|
make localedata/install-locales || exit 1
|
|
|
|
strip -S $out/lib/*.a $out/lib/*.so $out/lib/gconv/*.so
|
|
|
|
strip -s $out/bin/* $out/sbin/* $out/libexec/*
|
|
|
|
|
|
|
|
ln -s /etc/ld.so.conf $out/etc/ld.so.conf || exit 1
|
|
|
|
$out/sbin/ldconfig /lib /usr/lib || exit 1
|
|
|
|
|
|
|
|
exit 0
|