1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00

boost: fix build on mingw after b465dc202f

We passed bogus --libdir even in standard native builds;
apparently it wasn't a problem, but I also fixed that.
This commit is contained in:
Vladimír Čunát 2016-05-16 12:53:30 +02:00
parent 4cf524e588
commit 604b0c86bf

View file

@ -100,7 +100,7 @@ let
commonConfigureFlags = [
"--includedir=$(dev)/include"
"--libdir=$(lib)/lib"
"--libdir=$(out)/lib"
];
fixup = ''
@ -111,7 +111,7 @@ let
-exec sed '1i#line 1 "{}"' -i '{}' \;
)
'' + optionalString (stdenv.cross.libc or null == "msvcrt") ''
${stdenv.cross.config}-ranlib "$lib"/lib/*.a
${stdenv.cross.config}-ranlib "$out"/lib/*.a
'';
in