build: fix detection of mips dspr2 feature

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

Details

Message ID 1481098119-5768-1-git-send-email-yszhou4tech@gmail.com
State New
Series "build: fix detection of mips dspr2 feature"
Headers show

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 <yszhou4tech@gmail.com>
---
 configure.ac | 1 -
 1 file changed, 1 deletion(-)

Patch hide | download patch | download mbox

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