diff options
author | Brooks Moses <bmoses@google.com> | 2013-09-23 21:21:48 +0000 |
---|---|---|
committer | Brooks Moses <bmoses@google.com> | 2013-09-23 21:21:48 +0000 |
commit | d68bdc88e9e9caa55ef7b23f1e3ce95cff2d43ed (patch) | |
tree | 91aedd7ee0db437ab97587530ff25bdd605e03ef | |
parent | 7d947f7a16afb0be2034bdd6be5411b9e141ba12 (diff) |
2013-09-23 Brooks Moses <bmoses@google.com>
(Google-local)
* libssp/configure.ac: Always assume a valid vsnprintf when cross-compiling.
* libssp/configure: Regenerate.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/google/integration@202844 138bc75d-0d04-0410-961f-82ee72b054a4
-rwxr-xr-x | libssp/configure | 2 | ||||
-rw-r--r-- | libssp/configure.ac | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/libssp/configure b/libssp/configure index ea3d2a26481..32d3ca68ea5 100755 --- a/libssp/configure +++ b/libssp/configure @@ -4508,7 +4508,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is usable" >&5 $as_echo_n "checking whether vsnprintf is usable... " >&6; } if test "$cross_compiling" = yes; then : - ssp_have_usable_vsnprintf=undef + ssp_have_usable_vsnprintf=define else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ diff --git a/libssp/configure.ac b/libssp/configure.ac index 93dfa8da470..6e2a46b0773 100644 --- a/libssp/configure.ac +++ b/libssp/configure.ac @@ -145,7 +145,8 @@ int foo (char *buf, size_t n, const char *fmt, ...) return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;]), [ssp_have_usable_vsnprintf=define], [ssp_have_usable_vsnprintf=undef], -[ssp_have_usable_vsnprintf=undef]) +# Google-local: Assume this always works if cross-compiling. +[ssp_have_usable_vsnprintf=define]) if test "x$ssp_have_usable_vsnprintf" = xdefine; then AC_MSG_RESULT(yes) AC_DEFINE([HAVE_USABLE_VSNPRINTF],[1],[vsnprintf is present and works]) |