rhash: Enable cross-compilation

(cherry picked from commit 07f1d9eae440b3533ab53f424b31e541116e5623)
This commit is contained in:
Ben Gamari 2017-12-10 01:36:44 -05:00 committed by Will Dietz
parent 0509695050
commit a0410d9226

View file

@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
# * .h files installed for static library target only
# * .so.0 -> .so link only created in the static library install target
buildPhase = ''
make lib-shared lib-static build-shared CC=cc PREFIX=$out
make lib-shared lib-static build-shared CC=$CC AR=$AR PREFIX=$out
'';
# we don't actually want the static library, so we remove it after it