From fab7c3b449dd3ed2ab3a18d3a2ae4dce236dadfc Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Mon, 23 Apr 2007 23:26:12 +0000 Subject: [PATCH] * improved LDAP-QUIRK to also inject -I and -J to CPP git-svn-id: svn://svn.opensde.net/opensde/package/trunk@20921 10447126-35f2-4685-b0cf-6dd780d3921f --- network/openldap/parse-config | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/network/openldap/parse-config b/network/openldap/parse-config index 7e5639909..d3f8fc020 100644 --- a/network/openldap/parse-config +++ b/network/openldap/parse-config @@ -23,7 +23,14 @@ if pkginstalled -f openldap; then echo_warning "Injecting -L and -I to find openldap as requested." pkgprefix -t openldap - var_append GCC_WRAPPER_APPEND ' ' "-L$root$( pkgprefix libdir openldap )" - var_append GCC_WRAPPER_APPEND ' ' "-I$root$( pkgprefix includedir openldap )" + LDAPINC="$root$( pkgprefix includedir openldap )" + LDAPLIB="$root$( pkgprefix libdir openldap )" + + var_append GCC_WRAPPER_APPEND ' ' "-L$LDAPLIB" + var_append CPP_WRAPPER_APPEND ' ' "-L$LDAPLIB" + var_append GCC_WRAPPER_APPEND ' ' "-I$LDAPINC" + var_append CPP_WRAPPER_APPEND ' ' "-I$LDAPINC" + + unset LDAPINC LDAPLIB fi fi