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