libcurl-0001-build-link-curl-to-NSS-libraries-when-NSS-support.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From c6e7cbb94e669b85d3eb8e015ec51d0072112133 Mon Sep 17 00:00:00 2001
  2. From: Alessandro Ghedini <alessandro@ghedini.me>
  3. Date: Thu, 17 Jul 2014 14:37:28 +0200
  4. Subject: [PATCH] build: link curl to NSS libraries when NSS support is enabled
  5. This fixes a build failure on Debian caused by commit
  6. 24c3cdce88f39731506c287cb276e8bf4a1ce393.
  7. Bug: http://curl.haxx.se/mail/lib-2014-07/0209.html
  8. ---
  9. diff --git a/configure.ac b/configure.ac
  10. index c3cccfb..b78f56d 100644
  11. --- a/configure.ac
  12. +++ b/configure.ac
  13. @@ -2078,6 +2078,10 @@ if test "$curl_ssl_msg" = "$init_ssl_msg"; then
  14. if test "x$USE_NSS" = "xyes"; then
  15. AC_MSG_NOTICE([detected NSS version $version])
  16. + dnl needed when linking the curl tool without USE_EXPLICIT_LIB_DEPS
  17. + NSS_LIBS=$addlib
  18. + AC_SUBST([NSS_LIBS])
  19. +
  20. dnl when shared libs were found in a path that the run-time
  21. dnl linker doesn't search through, we need to add it to
  22. dnl LD_LIBRARY_PATH to prevent further configure tests to fail
  23. diff --git a/src/Makefile.am b/src/Makefile.am
  24. index d8c0c7d..f96618e 100644
  25. --- a/src/Makefile.am
  26. +++ b/src/Makefile.am
  27. @@ -62,7 +62,7 @@ LIBS = $(BLANK_AT_MAKETIME)
  28. if USE_EXPLICIT_LIB_DEPS
  29. curl_LDADD = $(top_builddir)/lib/libcurl.la @LIBMETALINK_LIBS@ @LIBCURL_LIBS@
  30. else
  31. -curl_LDADD = $(top_builddir)/lib/libcurl.la @LIBMETALINK_LIBS@ @ZLIB_LIBS@ @CURL_NETWORK_AND_TIME_LIBS@
  32. +curl_LDADD = $(top_builddir)/lib/libcurl.la @LIBMETALINK_LIBS@ @NSS_LIBS@ @ZLIB_LIBS@ @CURL_NETWORK_AND_TIME_LIBS@
  33. endif
  34. curl_LDFLAGS = @LIBMETALINK_LDFLAGS@
  35. --
  36. 1.8.5.5