mirror of
https://github.com/moparisthebest/curl
synced 2024-11-11 03:55:03 -05:00
Enabled OpenSSL static linkage.
This commit is contained in:
parent
cd4cf989bb
commit
ca8b4e9742
@ -126,6 +126,7 @@ else
|
|||||||
curl_DEPENDENCIES = $(PROOT)/lib/libcurl.a
|
curl_DEPENDENCIES = $(PROOT)/lib/libcurl.a
|
||||||
curl_LDADD = -L$(PROOT)/lib -lcurl
|
curl_LDADD = -L$(PROOT)/lib -lcurl
|
||||||
CFLAGS += -DCURL_STATICLIB
|
CFLAGS += -DCURL_STATICLIB
|
||||||
|
LDFLAGS += -static
|
||||||
endif
|
endif
|
||||||
ifdef ARES
|
ifdef ARES
|
||||||
ifndef DYN
|
ifndef DYN
|
||||||
@ -144,16 +145,21 @@ ifdef SSH2
|
|||||||
endif
|
endif
|
||||||
ifdef SSL
|
ifdef SSL
|
||||||
ifndef OPENSSL_LIBPATH
|
ifndef OPENSSL_LIBPATH
|
||||||
|
OPENSSL_LIBS = -lssl -lcrypto
|
||||||
ifeq "$(wildcard $(OPENSSL_PATH)/out)" "$(OPENSSL_PATH)/out"
|
ifeq "$(wildcard $(OPENSSL_PATH)/out)" "$(OPENSSL_PATH)/out"
|
||||||
OPENSSL_LIBPATH = $(OPENSSL_PATH)/out
|
OPENSSL_LIBPATH = $(OPENSSL_PATH)/out
|
||||||
OPENSSL_LIBS = -leay32 -lssl32
|
ifdef DYN
|
||||||
|
OPENSSL_LIBS = -lssl32 -leay32
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
ifeq "$(wildcard $(OPENSSL_PATH)/lib)" "$(OPENSSL_PATH)/lib"
|
ifeq "$(wildcard $(OPENSSL_PATH)/lib)" "$(OPENSSL_PATH)/lib"
|
||||||
OPENSSL_LIBPATH = $(OPENSSL_PATH)/lib
|
OPENSSL_LIBPATH = $(OPENSSL_PATH)/lib
|
||||||
OPENSSL_LIBS = -lcrypto -lssl
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
CFLAGS += -DUSE_SSLEAY -DHAVE_OPENSSL_ENGINE_H
|
ifndef DYN
|
||||||
|
OPENSSL_LIBS += -lgdi32 -lcrypt32
|
||||||
|
endif
|
||||||
|
CFLAGS += -DUSE_SSLEAY
|
||||||
curl_LDADD += -L"$(OPENSSL_LIBPATH)" $(OPENSSL_LIBS)
|
curl_LDADD += -L"$(OPENSSL_LIBPATH)" $(OPENSSL_LIBS)
|
||||||
endif
|
endif
|
||||||
ifdef ZLIB
|
ifdef ZLIB
|
||||||
|
Loading…
Reference in New Issue
Block a user