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"; unpackPhase = "cp ${./libredirect.c} libredirect.c";
buildPhase = '' 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"; installPhase = "mkdir -p $out/lib; cp libredirect.so $out/lib";