280f685
diff --git a/apr-config.in b/apr-config.in
280f685
index bed47ca..d4bf4d8 100644
280f685
--- a/apr-config.in
280f685
+++ b/apr-config.in
280f685
@@ -198,8 +198,10 @@ while test $# -gt 0; do
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}"
280f685
     elif test "$location" = "crosscompile"; then
280f685
         flags="$flags -L$APR_TARGET_DIR/$libdir -l${APR_LIBNAME}"
397f8f0
     else