openldap: fix cross-build
This commit is contained in:
parent
10ba78757f
commit
2ebe19f330
@ -13,15 +13,24 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
buildInputs = [ openssl cyrus_sasl db groff libtool ];
|
nativeBuildInputs = [ groff ];
|
||||||
|
|
||||||
configureFlags =
|
buildInputs = [ openssl cyrus_sasl db libtool ];
|
||||||
[ "--enable-overlays"
|
|
||||||
|
# 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
|
"--disable-dependency-tracking" # speeds up one-time build
|
||||||
"--enable-modules"
|
"--enable-modules"
|
||||||
"--sysconfdir=/etc"
|
"--sysconfdir=/etc"
|
||||||
"--localstatedir=/var"
|
"--localstatedir=/var"
|
||||||
"--enable-crypt"
|
"--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 (openssl == null) "--without-tls"
|
||||||
++ stdenv.lib.optional (cyrus_sasl == null) "--without-cyrus-sasl"
|
++ stdenv.lib.optional (cyrus_sasl == null) "--without-cyrus-sasl"
|
||||||
++ stdenv.lib.optional stdenv.isFreeBSD "--with-pic";
|
++ stdenv.lib.optional stdenv.isFreeBSD "--with-pic";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user