From 802285df38dc391ff922a842f8d91623c5e32b00 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Fri, 27 Nov 2015 00:28:12 +0100 Subject: [PATCH] qt5base: activate mips dsp extension when needed. When OpenWrt normally uses the mips dps extensions it adds this to the CFLAGS which are also given to qt5base. When we configure qt5base without dsp extension, but give the mdsp in the CFLAGS the compilation will fail. Signed-off-by: Hauke Mehrtens --- frameworks/qt5base/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/qt5base/Makefile b/frameworks/qt5base/Makefile index eb6d247..c500f28 100644 --- a/frameworks/qt5base/Makefile +++ b/frameworks/qt5base/Makefile @@ -259,8 +259,8 @@ define Build/Configure -no-sse4.2 \ -no-avx \ -no-avx2 \ - -no-mips_dsp \ - -no-mips_dspr2 \ + $(if $(findstring -mdsp,$(TARGET_CFLAGS)),,-no-mips_dsp)\ + $(if $(findstring -mdspr2,$(TARGET_CFLAGS)),,-no-mips_dspr2)\ -force-pkg-config \ -system-zlib \ -mtdev \ -- 2.30.2