BUILD: automatically add -lcrypto for SSL
Some platforms need it. Libz is still not enabled by default because there is no reason to add this dependency everywhere by default.
This commit is contained in:
parent
a0ee1d05f3
commit
8f182d9dc4
8
Makefile
8
Makefile
|
@ -469,12 +469,12 @@ endif
|
||||||
ifneq ($(USE_OPENSSL),)
|
ifneq ($(USE_OPENSSL),)
|
||||||
# OpenSSL is packaged in various forms and with various dependences.
|
# OpenSSL is packaged in various forms and with various dependences.
|
||||||
# In general -lssl is enough, but on some platforms, -lcrypto may be needed,
|
# In general -lssl is enough, but on some platforms, -lcrypto may be needed,
|
||||||
# as well as -lz. Pass them in the "ADDLIB" variable if needed. Similarly,
|
# reason why it's added by default. Some even need -lz, then you'll need to
|
||||||
# use ADDINC and ADDLIB to specify -I and -L if your OpenSSL library is not
|
# pass it in the "ADDLIB" variable if needed. Similarly, use ADDINC and ADDLIB
|
||||||
# in the standard path.
|
# to specify -I and -L if your OpenSSL library is not in the standard path.
|
||||||
BUILD_OPTIONS += $(call ignore_implicit,USE_OPENSSL)
|
BUILD_OPTIONS += $(call ignore_implicit,USE_OPENSSL)
|
||||||
OPTIONS_CFLAGS += -DUSE_OPENSSL
|
OPTIONS_CFLAGS += -DUSE_OPENSSL
|
||||||
OPTIONS_LDFLAGS += -lssl
|
OPTIONS_LDFLAGS += -lssl -lcrypto
|
||||||
OPTIONS_OBJS += src/ssl_sock.o src/shctx.o
|
OPTIONS_OBJS += src/ssl_sock.o src/shctx.o
|
||||||
ifneq ($(USE_FUTEX),)
|
ifneq ($(USE_FUTEX),)
|
||||||
OPTIONS_CFLAGS += -DUSE_SYSCALL_FUTEX
|
OPTIONS_CFLAGS += -DUSE_SYSCALL_FUTEX
|
||||||
|
|
Loading…
Reference in New Issue