2005-12-22 13:49:43 +03:00
|
|
|
source $stdenv/setup
|
|
|
|
|
2006-10-27 16:43:32 +04:00
|
|
|
myglibc=`cat ${NIX_GCC}/nix-support/orig-libc`
|
2005-12-22 13:49:43 +03:00
|
|
|
echo "glibc: $myglibc"
|
|
|
|
|
2007-02-05 17:55:15 +03:00
|
|
|
postConfigure=postConfigure
|
2005-12-22 13:49:43 +03:00
|
|
|
postConfigure() {
|
|
|
|
cp $myglibc/lib/crt1.o src
|
|
|
|
cp $myglibc/lib/crti.o src
|
|
|
|
cp $myglibc/lib/crtn.o src
|
2007-02-05 17:55:15 +03:00
|
|
|
|
|
|
|
for i in Makefile ./src/Makefile ./lib-src/Makefile ./leim/Makefile ./admin/unidata/Makefile; do
|
|
|
|
substituteInPlace $i --replace /bin/pwd pwd
|
|
|
|
done
|
2005-12-22 13:49:43 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
genericBuild
|