d3d4838
d3d4838
- don't export libs needed for DBD
d3d4838
- don't add -L%{_libdir} to --link-ld output
d3d4838
d3d4838
--- apr-util-1.2.2/build/dbd.m4.exports
d3d4838
+++ apr-util-1.2.2/build/dbd.m4
d3d4838
@@ -64,7 +64,6 @@
d3d4838
   dnl Since we have already done the AC_CHECK_LIB tests, if we have it, 
d3d4838
   dnl we know the library is there.
d3d4838
   if test "$apu_have_pgsql" = "1"; then
d3d4838
-    APR_ADDTO(APRUTIL_EXPORT_LIBS,[-lpq])
d3d4838
     APR_ADDTO(APRUTIL_LIBS,[-lpq])
d3d4838
   fi
d3d4838
 ])
d3d4838
@@ -115,7 +114,6 @@
d3d4838
   dnl Since we have already done the AC_CHECK_LIB tests, if we have it, 
d3d4838
   dnl we know the library is there.
d3d4838
   if test "$apu_have_mysql" = "1"; then
d3d4838
-    APR_ADDTO(APRUTIL_EXPORT_LIBS,[-lmysqlclient_r])
d3d4838
     APR_ADDTO(APRUTIL_LIBS,[-lmysqlclient_r])
d3d4838
   fi
d3d4838
 ])
d3d4838
@@ -152,7 +150,6 @@
d3d4838
   dnl Since we have already done the AC_CHECK_LIB tests, if we have it, 
d3d4838
   dnl we know the library is there.
d3d4838
   if test "$apu_have_sqlite3" = "1"; then
d3d4838
-    APR_ADDTO(APRUTIL_EXPORT_LIBS,[-lsqlite3])
d3d4838
     APR_ADDTO(APRUTIL_LIBS,[-lsqlite3])
d3d4838
   fi
d3d4838
 ])
d3d4838
@@ -189,7 +186,6 @@
d3d4838
   dnl Since we have already done the AC_CHECK_LIB tests, if we have it, 
d3d4838
   dnl we know the library is there.
d3d4838
   if test "$apu_have_sqlite2" = "1"; then
d3d4838
-    APR_ADDTO(APRUTIL_EXPORT_LIBS,[-lsqlite])
d3d4838
     APR_ADDTO(APRUTIL_LIBS,[-lsqlite])
d3d4838
   fi
d3d4838
 ])
d3d4838
--- apr-util-1.2.2/apu-config.in.exports
d3d4838
+++ apr-util-1.2.2/apu-config.in
d3d4838
@@ -147,8 +147,10 @@
d3d4838
     ;;
d3d4838
     --link-ld)
d3d4838
     if test "$location" = "installed"; then
d3d4838
-        ### avoid using -L if libdir is a "standard" location like /usr/lib
d3d4838
-        flags="$flags -L$libdir -l$APRUTIL_LIBNAME"
d3d4838
+        if test "$prefix" != "/usr"; then
d3d4838
+            flags="$flags -L${libdir}"
d3d4838
+        fi
d3d4838
+        flags="$flags -l$APRUTIL_LIBNAME"
d3d4838
     else
d3d4838
         flags="$flags -L$APU_BUILD_DIR -l$APRUTIL_LIBNAME"
d3d4838
     fi