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