From e874991d5a2d7e1134acc95f4f1aac7d16a29f77 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Tue, 22 Mar 2011 17:40:51 +0100 Subject: [PATCH] audit: fixed build by exporting '-D_GNU_SOURCE' via CPPFLAGS in $configprefix for getting O_NOFOLLOW defined --- security/audit/audit.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/security/audit/audit.conf b/security/audit/audit.conf index 8d5b51a56..596773b7c 100644 --- a/security/audit/audit.conf +++ b/security/audit/audit.conf @@ -12,6 +12,9 @@ # GNU General Public License can be found in the file COPYING. # --- SDE-COPYRIGHT-NOTE-END --- +# to get O_NOFOLLOW defined +var_append CPPFLAGS ' ' "-D_GNU_SOURCE" + # prelude support if pkginstalled libprelude; then pkgprefix -t libprelude @@ -27,5 +30,6 @@ if pkginstalled openldap; then var_append LDFLAGS ' ' "-L$root$( pkgprefix libdir openldap )" fi +var_insert configprefix ' ' "CPPFLAGS=\"$CPPFLAGS\"" var_insert configprefix ' ' "CFLAGS=\"$CFLAGS\"" var_insert configprefix ' ' "LDFLAGS=\"$LDFLAGS\""