Add WITH_BORINGSSL build flag
This commit is contained in:
@@ -17,6 +17,11 @@ ifeq ($(WITH_LIBDEFLATE),1)
|
|||||||
override LDFLAGS += libdeflate/libdeflate.a
|
override LDFLAGS += libdeflate/libdeflate.a
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Heavily prefer boringssl over openssl
|
||||||
|
ifeq ($(WITH_BORINGSSL),1)
|
||||||
|
override CFLAGS += -I uSockets/boringssl/include -pthread -DLIBUS_USE_OPENSSL
|
||||||
|
override LDFLAGS += -pthread uSockets/boringssl/build/ssl/libssl.a uSockets/boringssl/build/crypto/libcrypto.a
|
||||||
|
else
|
||||||
# WITH_OPENSSL=1 enables OpenSSL 1.1+ support
|
# WITH_OPENSSL=1 enables OpenSSL 1.1+ support
|
||||||
ifeq ($(WITH_OPENSSL),1)
|
ifeq ($(WITH_OPENSSL),1)
|
||||||
# With problems on macOS, make sure to pass needed LDFLAGS required to find these
|
# With problems on macOS, make sure to pass needed LDFLAGS required to find these
|
||||||
@@ -27,6 +32,7 @@ else
|
|||||||
override LDFLAGS += -L/usr/local/lib -lwolfssl
|
override LDFLAGS += -L/usr/local/lib -lwolfssl
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# WITH_LIBUV=1 builds with libuv as event-loop
|
# WITH_LIBUV=1 builds with libuv as event-loop
|
||||||
ifeq ($(WITH_LIBUV),1)
|
ifeq ($(WITH_LIBUV),1)
|
||||||
|
|||||||
+1
-1
Submodule uSockets updated: c258d0291f...c2c1bbfa16
Reference in New Issue
Block a user