From 41d22ae1abf3df441273bed9611e473a8326b190 Mon Sep 17 00:00:00 2001 From: Joel Stanley Date: Thu, 7 Apr 2022 10:26:08 +0930 Subject: [PATCH] package/flac: Configure powerpc vector extensions Remove the hard coded disabling of altivec and vsx, and instead use the BR2_POWERPC_CPU_HAS_VSX and BR2_POWERPC_CPU_HAS_ALTIVEC variables to control the flags. Signed-off-by: Joel Stanley [Arnout: rewrite with $(if ...) and --enable] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/flac/flac.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/flac/flac.mk b/package/flac/flac.mk index 3a18d81591..27fc63e2c2 100644 --- a/package/flac/flac.mk +++ b/package/flac/flac.mk @@ -17,11 +17,11 @@ FLAC_CPE_ID_VENDOR = flac_project FLAC_AUTORECONF = YES FLAC_CONF_OPTS = \ + $(if $(BR2_POWERPC_CPU_HAS_ALTIVEC),--enable-altivec,--disable-altivec) \ $(if $(BR2_INSTALL_LIBSTDCPP),--enable-cpplibs,--disable-cpplibs) \ + $(if $(BR2_POWERPC_CPU_HAS_VSX),--enable-vsx,--disable-vsx) \ --disable-xmms-plugin \ - --disable-altivec \ - --disable-stack-smash-protection \ - --disable-vsx + --disable-stack-smash-protection ifeq ($(BR2_PACKAGE_LIBOGG),y) FLAC_CONF_OPTS += --with-ogg=$(STAGING_DIR)/usr