mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
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