This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
libstdc++ in a combined tree
- From: DJ Delorie <dj at redhat dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 25 Apr 2006 14:18:40 -0400
- Subject: libstdc++ in a combined tree
Another one like libssp.
In libstdc++-v3's configure.ac, we see this:
# This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it assumes no.
GLIBCXX_ENABLE_SYMVERS([yes])
The comment lies. If we haven't yet checked the linker features, it
will check them, and configure will fail in a combined build because
newlib/libgloss hasn't yet been installed.
Since we already check for cross compiling, I've been using this
conditional instead:
if test x"$gcc_no_link" = xyes; then true; else
# This will run GLIBCXX CHECK_LINKER_FEATURES, so we can't use it if we can't
# build executables.
GLIBCXX_ENABLE_SYMVERS([yes])
fi
but of course this will drop support for cross compiled linux targets
having symbol versioning. Suggestions?