From 0f47a79534287db25d689809ac6a2c6b2155c077 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C5=A0afr=C3=A1nek?= Date: Fri, 8 Feb 2008 16:02:56 +0000 Subject: [PATCH] Define _GNU_SOURCE to fix compilation with new glibc/gcc --- openldap.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openldap.spec b/openldap.spec index 0915461..dfa634e 100644 --- a/openldap.spec +++ b/openldap.spec @@ -229,7 +229,7 @@ if pkg-config openssl ; then LDFLAGS="$OPENSSL_LDFLAGS" ; export LDFLAGS fi CPPFLAGS="-I${dbdir}/include $OPENSSL_CPPFLAGS" ; export CPPFLAGS -CFLAGS="$CPPFLAGS $RPM_OPT_FLAGS -D_REENTRANT -fPIC"; export CFLAGS +CFLAGS="$CPPFLAGS $RPM_OPT_FLAGS -D_REENTRANT -fPIC -D_GNU_SOURCE"; export CFLAGS LDFLAGS="-L${dbdir}/%{_lib} $OPENSSL_LDFLAGS" ; export LDFLAGS LD_LIBRARY_PATH=${dbdir}/%{_lib}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}; export LD_LIBRARY_PATH