From: Rui Salvaterra Date: Thu, 25 Feb 2021 08:19:22 +0000 (+0000) Subject: tor: fix building without OpenSSL engine support X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F14896%2Fhead;p=feed%2Fpackages.git tor: fix building without OpenSSL engine support Otherwise it would fail with linking errors. Signed-off-by: Rui Salvaterra --- diff --git a/net/tor/Makefile b/net/tor/Makefile index 3fc375e515..dc6a19de45 100644 --- a/net/tor/Makefile +++ b/net/tor/Makefile @@ -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 += \