This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [COMMITTED PATCH] Avoid C++ tests when the C++ cannot be linked.
- From: Florian Weimer <fweimer at redhat dot com>
- To: Roland McGrath <roland at hack dot frob dot com>, "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Fri, 06 Mar 2015 11:34:10 +0100
- Subject: Re: [COMMITTED PATCH] Avoid C++ tests when the C++ cannot be linked.
- Authentication-results: sourceware.org; auth=none
- References: <20150304215551 dot 7E6E22C3B7B at topped-with-meat dot com>
On 03/04/2015 10:55 PM, Roland McGrath wrote:
> +# It's useless to us if it can't link programs (e.g. missing -lstdc++).
> +AC_CACHE_CHECK([whether $CXX can link programs], libc_cv_cxx_link_ok, [dnl
> +AC_LANG_PUSH([C++])
> +AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
> + [libc_cv_cxx_link_ok=yes],
> + [libc_cv_cxx_link_ok=no])
> +AC_LANG_POP([C++])])
> +AS_IF([test $libc_cv_cxx_link_ok != yes], [CXX=])
The most common test failure is likely a working C++ compiler which
cannot link libstdc++ statically. This causes a “make check” abort,
without an error summary report. Your configure change does not address
that at all.
--
Florian Weimer / Red Hat Product Security