mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
d6cbd38bfb
directories for libraries. (Fortunately, the build would still fail because Perl's idea of "standard" library directories no longer matched that of the linker.) * `stdenv-linux/setup.sh' now puts the path of glibc in an environment variable so that it can be used by other packages (for example, we need to pass it to Perl's configure, because otherwise it will think that, e.g., libm.so doesn't exist). svn path=/nixpkgs/trunk/; revision=359
27 lines
636 B
Bash
Executable File
27 lines
636 B
Bash
Executable File
#! /bin/sh
|
|
|
|
. $stdenv/setup || exit 1
|
|
|
|
tar xvfz $src || exit 1
|
|
cd perl-* || exit 1
|
|
|
|
# Perl's Configure messes with PATH. We can't have that, so we patch it.
|
|
# Yeah, this is an ugly hack.
|
|
cat Configure | \
|
|
grep -v '^paths=' | \
|
|
grep -v '^locincpth=' | \
|
|
grep -v '^xlibpth=' | \
|
|
grep -v '^glibpth=' | \
|
|
grep -v '^loclibpth=' | \
|
|
grep -v '^locincpth=' | \
|
|
cat > Configure.tmp || exit 1
|
|
mv Configure.tmp Configure || exit 1
|
|
chmod +x Configure || exit 1
|
|
|
|
./Configure -de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl \
|
|
-Dlocincpth="$NIX_LIBC_INCLUDES" \
|
|
-Dloclibpth="$NIX_LIBC_LIBS" \
|
|
|| exit 1
|
|
make || exit 1
|
|
make install || exit 1
|