mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +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