Blame SOURCES/apr-1.2.2-libdir.patch

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