forked from mirrors/nixpkgs
* Allow Perl to be built using the native stdenv.
svn path=/nixpkgs/trunk/; revision=820
This commit is contained in:
parent
1b39a96d37
commit
e8d2b1cc36
|
@ -8,6 +8,7 @@ cd perl-*
|
|||
|
||||
# Perl's Configure messes with PATH. We can't have that, so we patch it.
|
||||
# Yeah, this is an ugly hack.
|
||||
if test "$NIX_ENFORCE_PURITY" = "1" -a -n "$NIX_STORE"; then
|
||||
cat Configure | \
|
||||
grep -v '^paths=' | \
|
||||
grep -v '^locincpth=' | \
|
||||
|
@ -18,11 +19,10 @@ cat Configure | \
|
|||
cat > Configure.tmp
|
||||
mv Configure.tmp Configure
|
||||
chmod +x Configure
|
||||
fi
|
||||
|
||||
patch -p1 < $srcPatch
|
||||
|
||||
./Configure -de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl \
|
||||
-Dlocincpth="$NIX_LIBC_INCLUDES" \
|
||||
-Dloclibpth="$NIX_LIBC_LIBS"
|
||||
./Configure -de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl
|
||||
make
|
||||
make install
|
||||
|
|
Loading…
Reference in a new issue