2005-12-22 13:49:43 +03:00
|
|
|
source $stdenv/setup
|
|
|
|
|
2007-10-24 20:21:41 +04:00
|
|
|
preConfigure=preConfigure
|
|
|
|
preConfigure() {
|
|
|
|
libc=$(cat ${NIX_GCC}/nix-support/orig-libc)
|
|
|
|
echo "libc: $libc"
|
2005-12-22 13:49:43 +03:00
|
|
|
|
2008-06-09 18:21:36 +04:00
|
|
|
for i in src/s/*.h src/m/*.h; do
|
|
|
|
substituteInPlace $i \
|
|
|
|
--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
|
|
|
|
done
|
2007-10-24 20:21:41 +04:00
|
|
|
|
2009-02-06 11:43:31 +03:00
|
|
|
for i in Makefile.in ./src/Makefile.in ./lib-src/Makefile.in ./leim/Makefile.in; do
|
2007-10-24 20:21:41 +04:00
|
|
|
substituteInPlace $i --replace /bin/pwd pwd
|
|
|
|
done
|
2005-12-22 13:49:43 +03:00
|
|
|
}
|
|
|
|
|
2007-10-24 20:21:41 +04:00
|
|
|
preBuild="make bootstrap"
|
|
|
|
|
2005-12-22 13:49:43 +03:00
|
|
|
genericBuild
|