From: Michael Pratt Date: Wed, 20 Jul 2022 23:17:22 +0000 (-0400) Subject: tools/libressl: disable assembly code for all hosts X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7012f2e18fb857d6c01211f8cc6217ac5b2933fe;p=openwrt%2Fstaging%2Frmilecki.git tools/libressl: disable assembly code for all hosts This SSL library is for hosts only and not shipped as a build product, therefore its performance quality (speed) is not critical. Assembly code is broken in LibreSSL for some x86_64 hosts (part of git history) and for some RISC host archs like armv7l, aarch64, powerpc, ppc64, etc... so let's just disable it for all hosts. For example, this fixes an instance on ARM hosts where the host Python 3 builds broken modules which link to LibreSSL, even with patches that enable LibreSSL support with the import error "unexpected reloc type 3". Ref: a395563f6 ("build: fix libressl build on x32 (amd64ilp32) host ") Suggested-by: Andre Heider Signed-off-by: Michael Pratt --- diff --git a/tools/libressl/Makefile b/tools/libressl/Makefile index aecc7889729..bf2bd4e999f 100644 --- a/tools/libressl/Makefile +++ b/tools/libressl/Makefile @@ -30,11 +30,8 @@ HOST_CFLAGS += $(HOST_FPIC) HOST_CONFIGURE_ARGS += \ --enable-static \ --disable-shared \ + --disable-asm \ --with-pic \ --disable-tests -ifeq ($(GNU_HOST_NAME),x86_64-linux-gnux32) -HOST_CONFIGURE_ARGS += --disable-asm -endif - $(eval $(call HostBuild))