mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03: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