lmdb: fix cross-compilation

This commit is contained in:
Vladimír Čunát 2019-02-21 10:35:01 +01:00
parent a9b16ad4e7
commit 147a685948
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

@ -18,7 +18,11 @@ stdenv.mkDerivation rec {
outputs = [ "bin" "out" "dev" ];
makeFlags = [ "prefix=$(out)" "CC=cc" ]
makeFlags = [
"prefix=$(out)"
"CC=${stdenv.cc.targetPrefix}cc"
"AR=${stdenv.cc.targetPrefix}ar"
]
++ stdenv.lib.optional stdenv.isDarwin "LDFLAGS=-Wl,-install_name,$(out)/lib/liblmdb.so";
doCheck = true;