995271
995271
Strip redundant APR-util dependent libraries, it is sufficient to link against -laprutil-1.
995271
995271
--- modsecurity-2.9.3/build/find_apu.m4.apulibs
995271
+++ modsecurity-2.9.3/build/find_apu.m4
995271
@@ -59,7 +59,7 @@
995271
     APU_CFLAGS="`${APU_CONFIG} --includes`"
995271
     if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apu CFLAGS: $APU_CFLAGS); fi
995271
     APU_LDFLAGS="`${APU_CONFIG} --ldflags`"
995271
-    APU_LDFLAGS="$APU_LDFLAGS `${APU_CONFIG} --libs`"
995271
+    APU_LDFLAGS="$APU_LDFLAGS `${APU_CONFIG} --avoid-ldap --avoid-dbm --libs`"
995271
     if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apu LDFLAGS: $APU_LDFLAGS); fi
995271
     APU_LDADD="`${APU_CONFIG} --link-libtool`"
995271
     if test "$verbose_output" -eq 1; then AC_MSG_NOTICE(apu LDADD: $APU_LDADD); fi