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