nixpkgs/pkgs/glibc/glibc-build.sh
Eelco Dolstra 7ec0df788f * Reduced the size of glibc from 130 to 50 MB.
* Adapted some more packages to use stdenv, "fixed" ld.so problems.
* Added a package for libxslt.

svn path=/nixpkgs/trunk/; revision=204
2003-07-25 14:59:22 +00:00

22 lines
545 B
Bash
Executable file

#! /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
LDFLAGS=-Wl,-S ../glibc-*/configure --prefix=$out --enable-add-ons --disable-profile || exit 1
make || exit 1
make install || exit 1
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