aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libressl
diff options
context:
space:
mode:
authorMichael Pratt <mcpratt@pm.me>2022-07-20 19:17:22 -0400
committerHauke Mehrtens <hauke@hauke-m.de>2022-07-31 18:46:23 +0200
commit7012f2e18fb857d6c01211f8cc6217ac5b2933fe (patch)
tree2f7f296483b9d921980d736a58db8ea497a125d6 /tools/libressl
parentb2e2deeb8dfa3c1a620cb5d1d0d54eccff85d2c0 (diff)
downloadupstream-7012f2e18fb857d6c01211f8cc6217ac5b2933fe.tar.gz
upstream-7012f2e18fb857d6c01211f8cc6217ac5b2933fe.tar.bz2
upstream-7012f2e18fb857d6c01211f8cc6217ac5b2933fe.zip
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 <a.heider@gmail.com> Signed-off-by: Michael Pratt <mcpratt@pm.me>
Diffstat (limited to 'tools/libressl')
-rw-r--r--tools/libressl/Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/libressl/Makefile b/tools/libressl/Makefile
index aecc788972..bf2bd4e999 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))