tor: fix building without OpenSSL engine support 14896/head
authorRui Salvaterra <rsalvaterra@gmail.com>
Thu, 25 Feb 2021 08:19:22 +0000 (08:19 +0000)
committerRui Salvaterra <rsalvaterra@gmail.com>
Thu, 25 Feb 2021 09:31:00 +0000 (09:31 +0000)
Otherwise it would fail with linking errors.

Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
net/tor/Makefile

index 3fc375e515b10184d7914fa16a6ca6c0fb6ec561..dc6a19de458422ecde9c7db872baac02e2067ee7 100644 (file)
@@ -139,7 +139,10 @@ ifeq ($(BUILD_VARIANT),basic)
   CONFIGURE_ARGS += --disable-module-relay
 endif
 
-TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto
+
+TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto \
+       $(if $(CONFIG_OPENSSL_ENGINE),,-DDISABLE_ENGINES)
+
 TARGET_LDFLAGS += -Wl,--gc-sections -flto
 
 CONFIGURE_VARS += \