perl: fix build for mips-linux

This commit is contained in:
Alexey Shmalko 2016-07-22 21:22:45 +03:00
parent b1e4ed38dd
commit 6d998e6386
No known key found for this signature in database
GPG Key ID: DCEF7BCCEB3066C3
1 changed files with 2 additions and 2 deletions

View File

@ -71,8 +71,8 @@ let
preConfigure =
''
configureFlags="$configureFlags -Dprefix=$out -Dman1dir=$out/share/man/man1 -Dman3dir=$out/share/man/man3"
'' + optionalString stdenv.isArm ''
configureFlagsArray=(-Dldflags="-lm -lrt")
'' + optionalString (stdenv.isArm || stdenv.isMips) ''
configureFlagsArray=(-Dldflags="-lm -lrt")
'' + optionalString stdenv.isDarwin ''
substituteInPlace hints/darwin.sh --replace "env MACOSX_DEPLOYMENT_TARGET=10.3" ""
'' + optionalString (!enableThreading) ''