From 38c3ead82078c5970f01034d10f42c4542dce68e Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Sun, 15 Aug 2021 19:00:02 +0300 Subject: [PATCH] nettle: disable assembler on ppc64 As of version 3.7, Nettle added PowerPC64 assembly for several algorithms. Unfortunately, they cause build to fail due to ABI mismatch: gcm-hash.o: ABI version 1 is not compatible with ABI version 2 output Disable assembler when ppc64 and musl are used for now. Signed-off-by: Stijn Tintel Acked-by: Rui Salvaterra --- package/libs/nettle/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/libs/nettle/Makefile b/package/libs/nettle/Makefile index 3b4bd9d05343..87853baa8299 100644 --- a/package/libs/nettle/Makefile +++ b/package/libs/nettle/Makefile @@ -44,7 +44,8 @@ CONFIGURE_ARGS += \ --enable-fat \ --disable-openssl \ --disable-documentation \ - --enable-static + --enable-static \ + $(if $(CONFIG_powerpc64), $(if $(CONFIG_USE_MUSL),--disable-assembler)) ifeq ($(CONFIG_LIBNETTLE_MINI),y) CONFIGURE_ARGS += --enable-mini-gmp -- 2.30.2