-
- ifeq "$(CURL_LIBCURL)" ""
- ifdef CURL_STATIC
-$(error "CURL_STATIC must be used with CURL_CONFIG")
- endif
- ifdef CURLDIR
- # Try "-Wl,-rpath=$(CURLDIR)/$(lib)" in such a case.
- BASIC_CFLAGS += -I$(CURLDIR)/include
- CURL_LIBCURL = -L$(CURLDIR)/$(lib) $(CC_LD_DYNPATH)$(CURLDIR)/$(lib) -lcurl
- else
- CURL_LIBCURL = -lcurl
- endif
- ifdef NEEDS_SSL_WITH_CURL
- CURL_LIBCURL += -lssl
- ifdef NEEDS_CRYPTO_WITH_SSL
- CURL_LIBCURL += -lcrypto
- endif
- endif
- ifdef NEEDS_IDN_WITH_CURL
- CURL_LIBCURL += -lidn
- endif
- else
- BASIC_CFLAGS += $(shell $(CURL_CONFIG) --cflags)
- ifdef CURL_STATIC
- CURL_LIBCURL = $(shell $(CURL_CONFIG) --static-libs)
- ifeq "$(CURL_LIBCURL)" ""
-$(error libcurl not detected or not compiled with static support)
- endif
+ ifdef NEEDS_SSL_WITH_CURL
+ CURL_LIBCURL += -lssl
+ ifdef NEEDS_CRYPTO_WITH_SSL
+ CURL_LIBCURL += -lcrypto