openldap: fix cross-build

wip/yesman
Jörg Thalheim 6 years ago committed by Robin Gloster
parent 10ba78757f
commit 2ebe19f330
  1. 33
      pkgs/development/libraries/openldap/default.nix

@ -13,18 +13,27 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
buildInputs = [ openssl cyrus_sasl db groff libtool ];
configureFlags =
[ "--enable-overlays"
"--disable-dependency-tracking" # speeds up one-time build
"--enable-modules"
"--sysconfdir=/etc"
"--localstatedir=/var"
"--enable-crypt"
] ++ stdenv.lib.optional (openssl == null) "--without-tls"
++ stdenv.lib.optional (cyrus_sasl == null) "--without-cyrus-sasl"
++ stdenv.lib.optional stdenv.isFreeBSD "--with-pic";
nativeBuildInputs = [ groff ];
buildInputs = [ openssl cyrus_sasl db libtool ];
# Disable install stripping as it breaks cross-compiling.
# We strip binaries anyway in fixupPhase.
makeFlags= [ "STRIP=" ];
configureFlags = [
"--enable-overlays"
"--disable-dependency-tracking" # speeds up one-time build
"--enable-modules"
"--sysconfdir=/etc"
"--localstatedir=/var"
"--enable-crypt"
] ++ stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"--with-yielding_select=yes"
"ac_cv_func_memcmp_working=yes"
] ++ stdenv.lib.optional (openssl == null) "--without-tls"
++ stdenv.lib.optional (cyrus_sasl == null) "--without-cyrus-sasl"
++ stdenv.lib.optional stdenv.isFreeBSD "--with-pic";
doCheck = false; # needs a running LDAP server

Loading…
Cancel
Save