Browse Source

audit: changed to inject -I and -L flags through the gcc wrapper instead of using CFLAGS and LDFLAGS which seems to work very unreliable

stable/0.2
Christian Wiese 14 years ago
parent
commit
3f6d72ac4f
  1. 11
      security/audit/audit.conf

11
security/audit/audit.conf

@ -16,16 +16,13 @@
if pkginstalled libprelude; then if pkginstalled libprelude; then
pkgprefix -t libprelude pkgprefix -t libprelude
var_append extraconfopt ' ' "--with-prelude" var_append extraconfopt ' ' "--with-prelude"
var_append CFLAGS ' ' "-I$root$( pkgprefix includedir libprelude )" var_append GCC_WRAPPER_APPEND ' ' "-I$root$( pkgprefix includedir libprelude )"
var_append LDFLAGS ' ' "-L$root$( pkgprefix libdir libprelude )" var_append GCC_WRAPPER_APPEND ' ' "-L$root$( pkgprefix libdir libprelude )"
fi fi
# no built-in checks for ldap nor configure options # no built-in checks for ldap nor configure options
if pkginstalled openldap; then if pkginstalled openldap; then
pkgprefix -t openldap pkgprefix -t openldap
var_append CFLAGS ' ' "-I$root$( pkgprefix includedir openldap )" var_append GCC_WRAPPER_APPEND ' ' "-I$root$( pkgprefix includedir openldap )"
var_append LDFLAGS ' ' "-L$root$( pkgprefix libdir openldap )" var_append GCC_WRAPPER_APPEND ' ' "-L$root$( pkgprefix libdir openldap )"
fi fi
var_insert configprefix ' ' "CFLAGS=\"$CFLAGS\""
var_insert configprefix ' ' "LDFLAGS=\"$LDFLAGS\""

Loading…
Cancel
Save