Blame SOURCES/apr-1.2.2-libdir.patch

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