mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
* Fix on x86_64 (borrowed from emacs-unicode).
svn path=/nixpkgs/branches/stdenv-updates/; revision=12043
This commit is contained in:
parent
4bc5a10817
commit
78d2e3cb30
@ -1,13 +1,20 @@
|
|||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
myglibc=`cat ${NIX_GCC}/nix-support/orig-libc`
|
preConfigure=preConfigure
|
||||||
echo "glibc: $myglibc"
|
preConfigure() {
|
||||||
|
libc=$(cat ${NIX_GCC}/nix-support/orig-libc)
|
||||||
|
echo "libc: $libc"
|
||||||
|
|
||||||
postConfigure() {
|
for i in src/s/*.h src/m/*.h; do
|
||||||
cp $myglibc/lib/crt1.o src
|
substituteInPlace $i \
|
||||||
cp $myglibc/lib/crti.o src
|
--replace /usr/lib/crt1.o $libc/lib/crt1.o \
|
||||||
cp $myglibc/lib/crtn.o src
|
--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
|
||||||
}
|
}
|
||||||
postConfigure=postConfigure
|
|
||||||
|
|
||||||
genericBuild
|
genericBuild
|
||||||
|
Loading…
Reference in New Issue
Block a user