[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commits] r9229 - in /trunk/libc: ChangeLog.eglibc configure configure.in



Author: joseph
Date: Wed Nov 11 07:45:19 2009
New Revision: 9229

Log:
2009-11-11  Thomas Schwinge  <thomas@xxxxxxxxxxxxxxxx>

	* configure.in (libc_cv_ssp): Make this a compile-time check.  Avoid
	creating temporary files.
	* configure: Regenerate.

Modified:
    trunk/libc/ChangeLog.eglibc
    trunk/libc/configure
    trunk/libc/configure.in

Modified: trunk/libc/ChangeLog.eglibc
==============================================================================
--- trunk/libc/ChangeLog.eglibc (original)
+++ trunk/libc/ChangeLog.eglibc Wed Nov 11 07:45:19 2009
@@ -1,3 +1,9 @@
+2009-11-11  Thomas Schwinge  <thomas@xxxxxxxxxxxxxxxx>
+
+	* configure.in (libc_cv_ssp): Make this a compile-time check.  Avoid
+	creating temporary files.
+	* configure: Regenerate.
+
 2009-11-11  Maxim Kuvyrkov  <maxim@xxxxxxxxxxxxxxxx>
 
 	Add OPTION_EGLIBC_MEMUSAGE option group and

Modified: trunk/libc/configure
==============================================================================
--- trunk/libc/configure (original)
+++ trunk/libc/configure Wed Nov 11 07:45:19 2009
@@ -6890,12 +6890,8 @@
 if test "${libc_cv_ssp+set}" = set; then
   $as_echo_n "(cached) " >&6
 else
-  cat > conftest.c <<EOF
-int foo;
-main () { return 0;}
-EOF
-if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
-			    -o conftest conftest.c 1>&5'
+  if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector
+			    -o /dev/null -c -x c /dev/null 1>&5'
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
   (eval $ac_try) 2>&5
   ac_status=$?
@@ -6906,7 +6902,6 @@
 else
   libc_cv_ssp=no
 fi
-rm -f conftest*
 fi
 { $as_echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5
 $as_echo "$libc_cv_ssp" >&6; }

Modified: trunk/libc/configure.in
==============================================================================
--- trunk/libc/configure.in (original)
+++ trunk/libc/configure.in Wed Nov 11 07:45:19 2009
@@ -1746,18 +1746,13 @@
 AC_SUBST(fno_unit_at_a_time)
 
 AC_CACHE_CHECK(for -fstack-protector, libc_cv_ssp, [dnl
-cat > conftest.c <<EOF
-int foo;
-main () { return 0;}
-EOF
-if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
-			    -o conftest conftest.c 1>&AS_MESSAGE_LOG_FD])
+if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector
+			    -o /dev/null -c -x c /dev/null 1>&AS_MESSAGE_LOG_FD])
 then
   libc_cv_ssp=yes
 else
   libc_cv_ssp=no
-fi
-rm -f conftest*])
+fi])
 AC_SUBST(libc_cv_ssp)
 
 AC_CACHE_CHECK(for -fgnu89-inline, libc_cv_gnu89_inline, [dnl