Merge pull request #141244 from alyssais/bearssl-cross
This commit is contained in:
commit
b28fe2e014
1 changed files with 8 additions and 2 deletions
|
@ -13,12 +13,18 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
makeFlags = [
|
||||||
|
"AR=${stdenv.cc.targetPrefix}ar"
|
||||||
|
"CC=${stdenv.cc.targetPrefix}cc"
|
||||||
|
"LD=${stdenv.cc.targetPrefix}cc"
|
||||||
|
"LDDLL=${stdenv.cc.targetPrefix}cc"
|
||||||
|
] ++ lib.optional stdenv.hostPlatform.isStatic "DLL=no";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
install -D build/brssl $bin/brssl
|
install -D build/brssl $bin/brssl
|
||||||
install -D build/testcrypto $bin/testcrypto
|
install -D build/testcrypto $bin/testcrypto
|
||||||
install -Dm644 build/libbearssl.so $lib/lib/libbearssl.so
|
install -Dm644 -t $lib/lib build/libbearssl.*
|
||||||
install -Dm644 build/libbearssl.a $lib/lib/libbearssl.a
|
|
||||||
install -Dm644 -t $dev/include inc/*.h
|
install -Dm644 -t $dev/include inc/*.h
|
||||||
touch $out
|
touch $out
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
|
|
Loading…
Reference in a new issue