* configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
* configure: Regenerated.
From-SVN: r223899
+2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
+
+ * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
+ * configure: Regenerated.
+
2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
* config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
if test "${gcc_cv_c_no_fpie+set}" = set; then :
$as_echo_n "(cached) " >&6
else
- saved_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -fno-PIE"
+ saved_CXXFLAGS="$CXXFLAGS"
+ CXXFLAGS="$CXXFLAGS -fno-PIE"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int main(void) {return 0;}
gcc_cv_c_no_fpie=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- CFLAGS="$saved_CFLAGS"
+ CXXFLAGS="$saved_CXXFLAGS"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
$as_echo "$gcc_cv_c_no_fpie" >&6; }
# Check if -fno-PIE works.
AC_CACHE_CHECK([for -fno-PIE option],
[gcc_cv_c_no_fpie],
- [saved_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -fno-PIE"
+ [saved_CXXFLAGS="$CXXFLAGS"
+ CXXFLAGS="$CXXFLAGS -fno-PIE"
AC_COMPILE_IFELSE([int main(void) {return 0;}],
[gcc_cv_c_no_fpie=yes],
[gcc_cv_c_no_fpie=no])
- CFLAGS="$saved_CFLAGS"])
+ CXXFLAGS="$saved_CXXFLAGS"])
if test "$gcc_cv_c_no_fpie" = "yes"; then
NO_PIE_CFLAGS="-fno-PIE"
fi