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
+13 -7
View File
@@ -17,14 +17,20 @@ ifeq ($(WITH_LIBDEFLATE),1)
override LDFLAGS += libdeflate/libdeflate.a override LDFLAGS += libdeflate/libdeflate.a
endif endif
# WITH_OPENSSL=1 enables OpenSSL 1.1+ support # Heavily prefer boringssl over openssl
ifeq ($(WITH_OPENSSL),1) ifeq ($(WITH_BORINGSSL),1)
# With problems on macOS, make sure to pass needed LDFLAGS required to find these override CFLAGS += -I uSockets/boringssl/include -pthread -DLIBUS_USE_OPENSSL
override LDFLAGS += -lssl -lcrypto override LDFLAGS += -pthread uSockets/boringssl/build/ssl/libssl.a uSockets/boringssl/build/crypto/libcrypto.a
else else
# WITH_WOLFSSL=1 enables WolfSSL 4.2.0 support (mutually exclusive with OpenSSL) # WITH_OPENSSL=1 enables OpenSSL 1.1+ support
ifeq ($(WITH_WOLFSSL),1) ifeq ($(WITH_OPENSSL),1)
override LDFLAGS += -L/usr/local/lib -lwolfssl # With problems on macOS, make sure to pass needed LDFLAGS required to find these
override LDFLAGS += -lssl -lcrypto
else
# WITH_WOLFSSL=1 enables WolfSSL 4.2.0 support (mutually exclusive with OpenSSL)
ifeq ($(WITH_WOLFSSL),1)
override LDFLAGS += -L/usr/local/lib -lwolfssl
endif
endif endif
endif endif