2005-12-22 11:49:43 +01:00
|
|
|
source $stdenv/setup
|
|
|
|
|
2007-10-24 18:21:41 +02:00
|
|
|
preConfigure=preConfigure
|
|
|
|
preConfigure() {
|
|
|
|
libc=$(cat ${NIX_GCC}/nix-support/orig-libc)
|
|
|
|
echo "libc: $libc"
|
2005-12-22 11:49:43 +01:00
|
|
|
|
2007-10-24 18:21:41 +02:00
|
|
|
substituteInPlace src/s/gnu-linux.h \
|
|
|
|
--replace /usr/lib/crt1.o $libc/lib/crt1.o \
|
|
|
|
--replace /usr/lib/crti.o $libc/lib/crti.o \
|
|
|
|
--replace /usr/lib/crtn.o $libc/lib/crtn.o
|
|
|
|
|
|
|
|
for i in Makefile.in ./src/Makefile.in ./lib-src/Makefile.in ./leim/Makefile.in ./admin/unidata/Makefile; do
|
|
|
|
substituteInPlace $i --replace /bin/pwd pwd
|
|
|
|
done
|
2005-12-22 11:49:43 +01:00
|
|
|
}
|
|
|
|
|
2007-10-24 18:21:41 +02:00
|
|
|
preBuild="make bootstrap"
|
|
|
|
|
2005-12-22 11:49:43 +01:00
|
|
|
genericBuild
|