Browse Source

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 <[email protected]>
Acked-by: Rui Salvaterra <[email protected]>
Stijn Tintel 4 years ago
parent
commit
38c3ead820
1 changed files with 2 additions and 1 deletions
  1. 2 1
      package/libs/nettle/Makefile

+ 2 - 1
package/libs/nettle/Makefile

@@ -44,7 +44,8 @@ CONFIGURE_ARGS += \
 	--enable-fat \
 	--enable-fat \
 	--disable-openssl \
 	--disable-openssl \
 	--disable-documentation \
 	--disable-documentation \
-	--enable-static
+	--enable-static \
+	$(if $(CONFIG_powerpc64), $(if $(CONFIG_USE_MUSL),--disable-assembler))
 
 
 ifeq ($(CONFIG_LIBNETTLE_MINI),y)
 ifeq ($(CONFIG_LIBNETTLE_MINI),y)
 CONFIGURE_ARGS += --enable-mini-gmp
 CONFIGURE_ARGS += --enable-mini-gmp