Merge pull request #107961 from KAction/par-static

par: fix static build
This commit is contained in:
Jörg Thalheim 2021-01-13 09:05:40 +00:00 committed by GitHub
commit dbb48b45a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,10 @@ stdenv.mkDerivation {
})
];
buildPhase = ''make -f protoMakefile'';
makefile = "protoMakefile";
preBuild = ''
makeFlagsArray+=(CC="${stdenv.cc.targetPrefix}cc -c" LINK1=${stdenv.cc.targetPrefix}cc)
'';
installPhase = ''
mkdir -p $out/bin