summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Raghavan <git@arunraghavan.net>2015-10-19 11:29:40 +0530
committerArun Raghavan <git@arunraghavan.net>2015-10-19 11:29:40 +0530
commitd6a338cb01e4214fe236363f35438d1f8b822696 (patch)
treebe3417998c8209b6a19b4282794016dcd012d97a
parente4b1cac207de4c347b8b399f177990a956de7cbb (diff)
build: Use CXXFLAGS instead of CFLAGS in compile testing
This is needed since we're using AC_LANG_CPLUSPLUS
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 804b5d8..46d6ed8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,7 +84,7 @@ AC_ARG_ENABLE([neon],
AS_IF([test "x$enable_neon" != "xno"],
AS_IF([test "x$enable_neon" != "xruntime"],
[
- save_CFLAGS="$CFLAGS"; CFLAGS="-mfpu=neon $CFLAGS"
+ save_CXXFLAGS="$CXXFLAGS"; CXXFLAGS="-mfpu=neon $CXXFLAGS"
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[
@@ -94,7 +94,7 @@ AS_IF([test "x$enable_neon" != "xno"],
HAVE_NEON=1
ARCH_CFLAGS="-mfpu=neon"
])
- CFLAGS="$save_CFLAGS"
+ CXXFLAGS="$save_CXXFLAGS"
],
[
HAVE_NEON=1