0004-use-correct-curl-config.patch 909 B

12345678910111213141516171819202122
  1. Use correct curl-config program
  2. Instead of calling again curl-config in src/Makefile (which ends up
  3. calling the wrong curl-config: the one in the PATH instead of the one
  4. pointed at by the environment variables at configure time), let's use
  5. the CURL_LDADD variable which was computed at configure time.
  6. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  7. Index: b/src/Makefile
  8. ===================================================================
  9. --- a/src/Makefile
  10. +++ b/src/Makefile
  11. @@ -56,7 +56,7 @@
  12. TRANSPORT_MODS += blddir/lib/curl_transport/curltransaction
  13. TRANSPORT_MODS += blddir/lib/curl_transport/curlmulti
  14. TRANSPORT_MODS += blddir/lib/curl_transport/lock_pthread
  15. - TRANSPORT_LIBDEP += $(shell curl-config --libs)
  16. + TRANSPORT_LIBDEP += $(CURL_LDADD)
  17. endif
  18. ifeq ($(MUST_BUILD_LIBWWW_CLIENT),yes)
  19. TRANSPORT_MODS += blddir/lib/libwww_transport/xmlrpc_libwww_transport