diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2019-02-21 10:35:01 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2019-02-21 12:16:03 +0100 |
commit | 147a685948339fdf3263c30961434928253fa482 (patch) | |
tree | 37883edceefcbbf9fc4f49820cc9604e03dca6bd /pkgs/development | |
parent | a9b16ad4e74988a926f3da9501738f730ffbdc28 (diff) |
lmdb: fix cross-compilation
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/lmdb/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/libraries/lmdb/default.nix b/pkgs/development/libraries/lmdb/default.nix index 047a74f08409..9d57d4721820 100644 --- a/pkgs/development/libraries/lmdb/default.nix +++ b/pkgs/development/libraries/lmdb/default.nix @@ -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; |