Merge pull request #17242 from rasendubi/mips-linux

Fixes for mips-linux
This commit is contained in:
Rok Garbas 2016-07-27 19:01:11 +02:00 committed by GitHub
commit cd1dadf860
2 changed files with 3 additions and 3 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) ''

View file

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
];
postPatch =
lib.optionalString (stdenv.cross.libc or null == "msvcrt")
lib.optionalString ((stdenv ? cross && stdenv.cross.libc == "msvcrt") || stdenv.cc.nativeLibc)
''
sed '/^_GL_WARN_ON_USE (gets/d' -i srclib/stdio.in.h
'';