Blame SOURCES/apr-1.2.2-libdir.patch

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