Add the expat libtool file to the LT_LDFLAGS variable to avoid placing a
libtool file path onto LDFLAGS (pkg-config --libs apr-util-1).

--
Davi Arnaut

Index: build/apu-conf.m4
===================================================================
--- build/apu-conf.m4   (revision 468692)
+++ build/apu-conf.m4   (working copy)
@@ -204,7 +204,8 @@
   expat_libs="-lexpat"
   expat_libtool=$top_builddir/$bundled_subdir/lib/libexpat.la
   APR_XML_SUBDIRS="`echo $bundled_subdir | sed -e 's%xml/%%'`"
-  APR_ADDTO(APRUTIL_EXPORT_LIBS, [$expat_libtool])
+  APR_ADDTO(LT_LDFLAGS, [$expat_libtool])
+  APR_ADDTO(APRUTIL_EXPORT_LIBS, [$expat_libs])
 else
 if test "$expat_include_dir" = "$abs_srcdir/xml/expat/include" -o 
"$expat_include_dir" = "$abs_srcdir/xml/expat/lib"; then
   dnl This is a bit of a hack.  This only works because we know that
@@ -216,7 +217,8 @@
   expat_libs="-lexpat"
   expat_libtool=$top_builddir/$bundled_subdir/lib/libexpat.la
   APR_XML_SUBDIRS="`echo $bundled_subdir | sed -e 's%xml/%%'`"
-  APR_ADDTO(APRUTIL_EXPORT_LIBS, [$expat_libtool])
+  APR_ADDTO(LT_LDFLAGS, [$expat_libtool])
+  APR_ADDTO(APRUTIL_EXPORT_LIBS, [$expat_libs])
 else
   APR_ADDTO(APRUTIL_EXPORT_LIBS, [$expat_libs])
 fi

Reply via email to