lmdb: fix cross-compilation
This commit is contained in:
parent
a9b16ad4e7
commit
147a685948
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user