Blame SOURCES/apr-1.2.2-libdir.patch

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