Blame SOURCES/apr-1.2.2-libdir.patch

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