mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 12:22:37 +03:00
b724614087
svn path=/nixpkgs/trunk/; revision=9519
21 lines
559 B
Bash
21 lines
559 B
Bash
source $stdenv/setup
|
|
|
|
preConfigure=preConfigure
|
|
preConfigure() {
|
|
libc=$(cat ${NIX_GCC}/nix-support/orig-libc)
|
|
echo "libc: $libc"
|
|
|
|
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
|
|
}
|
|
|
|
preBuild="make bootstrap"
|
|
|
|
genericBuild
|