3
0
Fork 0
forked from mirrors/nixpkgs

use for cross-compilation

This commit is contained in:
zimbatm 2018-11-12 00:08:18 +01:00
parent 753743c37b
commit d76ec523bb
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7

View file

@ -6,7 +6,7 @@ stdenv.mkDerivation {
unpackPhase = "cp ${./libredirect.c} libredirect.c";
buildPhase = ''
cc -Wall -std=c99 -O3 -shared libredirect.c -o libredirect.so -fPIC -ldl
$CC -Wall -std=c99 -O3 -shared libredirect.c -o libredirect.so -fPIC -ldl
'';
installPhase = "mkdir -p $out/lib; cp libredirect.so $out/lib";