7689a348c4
builders. These are redundant now. * Inlined some trivial builders. * Removed a few explicit setup-hook creations. This is done automatically now if setupHook is set. * Deleted the initscripts package. NixOS doesn't use it anymore. svn path=/nixpkgs/branches/stdenv-updates/; revision=15276
22 lines
555 B
Bash
22 lines
555 B
Bash
source $stdenv/setup
|
|
|
|
preConfigure() {
|
|
libc=$(cat ${NIX_GCC}/nix-support/orig-libc)
|
|
echo "libc: $libc"
|
|
|
|
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
|
|
|
|
for i in Makefile.in ./src/Makefile.in ./lib-src/Makefile.in ./leim/Makefile.in; do
|
|
substituteInPlace $i --replace /bin/pwd pwd
|
|
done
|
|
}
|
|
|
|
preBuild="make bootstrap"
|
|
|
|
genericBuild
|