397f8f0
397f8f0
- avoid adding %{_libdir} to --link-ld output
397f8f0
397f8f0
--- apr-1.2.2/apr-config.in.libdir
397f8f0
+++ apr-1.2.2/apr-config.in
397f8f0
@@ -181,8 +181,10 @@
397f8f0
     ;;
397f8f0
     --link-ld)
397f8f0
     if test "$location" = "installed"; then
397f8f0
-        ### avoid using -L if libdir is a "standard" location like /usr/lib
397f8f0
-        flags="$flags -L$libdir -l${APR_LIBNAME}"
397f8f0
+        if test "$prefix" != "/usr"; then
397f8f0
+            flags="$flags -L$libdir"
397f8f0
+        fi
397f8f0
+        flags="$flags -l${APR_LIBNAME}"
397f8f0
     else
397f8f0
         ### this surely can't work since the library is in .libs?
397f8f0
         flags="$flags -L$APR_BUILD_DIR -l${APR_LIBNAME}"