build: fix detection of mips dspr2 feature

Submitted by Yousong Zhou on Dec. 7, 2016, 8:08 a.m.


Message ID
State New
Headers show
Series "build: fix detection of mips dspr2 feature" ( rev: 1 ) in Pixman

Not browsing as part of any series.

Commit Message

Yousong Zhou Dec. 7, 2016, 8:08 a.m.
When the toolchain has dspr2 support then the compile test will succeed
with, e.g. `-march=24kc -mdspr2`.  But it may fail later at compile-time
without the `-mdspr2` switch, or worse at runtime where dspr2 support is
not present.

Let the users decide whether they want `-mdspr2` to be part of cflags.

Signed-off-by: Yousong Zhou <>
--- | 1 -
 1 file changed, 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/ b/
index e833e45..68b3ea3 100644
--- a/
+++ b/
@@ -735,7 +735,6 @@  dnl Check if assembler is gas compatible and supports MIPS DSPr2 instructions
 AC_MSG_CHECKING(whether to use MIPS DSPr2 assembler)
-CFLAGS="-mdspr2 $CFLAGS"
 #if !(defined(__mips__) &&  __mips_isa_rev >= 2)