qt5base: activate mips dsp extension when needed.
[feed/video.git] / 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 \