apr-1.2.2-libdir.patch 598 B

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