From 63e9c214f838e02c168d542bb7f76963f8b3dfe6 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Fri, 7 Mar 2014 17:24:09 +0100 Subject: [PATCH] openldap: fix cross-compiling NOTE: Only tested with glibc for now! --- network/openldap/openldap.conf | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/network/openldap/openldap.conf b/network/openldap/openldap.conf index afe330a43..0687b3029 100644 --- a/network/openldap/openldap.conf +++ b/network/openldap/openldap.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../openldap/openldap.conf -# Copyright (C) 2007 - 2011 The OpenSDE Project +# Copyright (C) 2007 - 2014 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2003 Clifford Wolf # @@ -22,6 +22,20 @@ if [ "$prefix_auto" = 1 ]; then var_append extraconfopt ' ' "--sysconfdir=${sysconfdir%/openldap}" fi +if atstage cross; then + # TODO: only tested with glibc for now + var_append extraconfopt ' ' "--with-yielding_select=yes" + # strangely adding ac_cv_func_memcmp_working=yes to the config + # cache file is not working so we inject it through extraconfopt + var_append extraconfopt ' ' "ac_cv_func_memcmp_working=yes" + + # Makefiles are defining 'STRIP= -s' referring to the option + # passed to the 'install' command but we pass STRIP=$triplet-strip + # in the make options when cross-compiling + var_remove_regex makeopt ' ' "STRIP=.*" + var_remove_regex makeinstopt ' ' "STRIP=.*" +fi + pkginstalled tcp_wrappers && var_append extraconfopt ' ' '--enable-wrappers'