mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
use for cross-compilation
This commit is contained in:
parent
753743c37b
commit
d76ec523bb
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user