aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-04-02 06:54:01 +0000
committerEric Christopher <echristo@apple.com>2012-04-02 06:54:01 +0000
commit79e22d8c45369e662ea92853f803341cdbfd77be (patch)
treeb849aa8255783b922f81fef035e713feeb90dcf3
parent17463b3ef1a3d39b10619254f12e806c8c43f9e7 (diff)
Fix CXXFLAGS for huge_val.m4.
Patch by Jeremy Huddleston! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153862 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--autoconf/m4/huge_val.m42
-rwxr-xr-xconfigure2
2 files changed, 2 insertions, 2 deletions
diff --git a/autoconf/m4/huge_val.m4 b/autoconf/m4/huge_val.m4
index 7ef9dcae69..9dc76f2235 100644
--- a/autoconf/m4/huge_val.m4
+++ b/autoconf/m4/huge_val.m4
@@ -6,7 +6,7 @@ AC_DEFUN([AC_HUGE_VAL_CHECK],[
AC_CACHE_CHECK([for HUGE_VAL sanity], [ac_cv_huge_val_sanity],[
AC_LANG_PUSH([C++])
ac_save_CXXFLAGS=$CXXFLAGS
- CXXFLAGS+=" -pedantic"
+ CXXFLAGS="$CXXFLAGS -pedantic"
AC_RUN_IFELSE(
AC_LANG_PROGRAM(
[#include <math.h>],
diff --git a/configure b/configure
index f4c5670de6..5c2d466774 100755
--- a/configure
+++ b/configure
@@ -16371,7 +16371,7 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_save_CXXFLAGS=$CXXFLAGS
- CXXFLAGS+=" -pedantic"
+ CXXFLAGS="$CXXFLAGS -pedantic"
if test "$cross_compiling" = yes; then
ac_cv_huge_val_sanity=yes
else