From 3f6d72ac4fc210d125d8c99b3761ccd4218de7b4 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Sat, 28 May 2011 18:36:48 +0200 Subject: [PATCH] audit: changed to inject -I and -L flags through the gcc wrapper instead of using CFLAGS and LDFLAGS which seems to work very unreliable --- security/audit/audit.conf | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/security/audit/audit.conf b/security/audit/audit.conf index 8d5b51a56..438b596b8 100644 --- a/security/audit/audit.conf +++ b/security/audit/audit.conf @@ -16,16 +16,13 @@ if pkginstalled libprelude; then pkgprefix -t libprelude var_append extraconfopt ' ' "--with-prelude" - var_append CFLAGS ' ' "-I$root$( pkgprefix includedir libprelude )" - var_append LDFLAGS ' ' "-L$root$( pkgprefix libdir libprelude )" + var_append GCC_WRAPPER_APPEND ' ' "-I$root$( pkgprefix includedir libprelude )" + var_append GCC_WRAPPER_APPEND ' ' "-L$root$( pkgprefix libdir libprelude )" fi # no built-in checks for ldap nor configure options if pkginstalled openldap; then pkgprefix -t openldap - var_append CFLAGS ' ' "-I$root$( pkgprefix includedir openldap )" - var_append LDFLAGS ' ' "-L$root$( pkgprefix libdir openldap )" + var_append GCC_WRAPPER_APPEND ' ' "-I$root$( pkgprefix includedir openldap )" + var_append GCC_WRAPPER_APPEND ' ' "-L$root$( pkgprefix libdir openldap )" fi - -var_insert configprefix ' ' "CFLAGS=\"$CFLAGS\"" -var_insert configprefix ' ' "LDFLAGS=\"$LDFLAGS\""