Add WITH_BORINGSSL build flag

This commit is contained in:
Alex Hultman
2021-10-23 21:41:13 +02:00
parent 92a9b3f992
commit 80cd18781b
2 changed files with 14 additions and 8 deletions
+6
View File
@@ -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)