From: Hauke Mehrtens Date: Thu, 26 Nov 2015 23:28:12 +0000 (+0100) Subject: qt5base: activate mips dsp extension when needed. X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=802285df38dc391ff922a842f8d91623c5e32b00;p=feed%2Fvideo.git 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 --- 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 \