qt5base: activate mips dsp extension when needed.
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 26 Nov 2015 23:28:12 +0000 (00:28 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 6 Dec 2015 21:47:22 +0000 (22:47 +0100)
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 <hauke@hauke-m.de>
frameworks/qt5base/Makefile

index eb6d247f2b85277926045330e771f5efb5a0b62f..c500f2899b4c91d8093a1c3335d023aecbcf2048 100644 (file)
@@ -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 \