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