This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++ gets configure error in cross builds
- From: Ian Lance Taylor <iant at google dot com>
- To: Paul Koning <paul_koning at dell dot com>
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Thu, 02 Dec 2010 11:55:39 -0800
- Subject: Re: libstdc++ gets configure error in cross builds
- References: <1BD0A7DD-4662-412B-9097-C51822CADC62@dell.com>
Paul Koning <paul_koning@dell.com> writes:
> I'm trying to do a cross-build of gcc 4.5.1. It works fine until I
> get to libstdc++v3, where configure blows up with a message saying
> "Link tests are not allowed after GCC_NO_EXECUTABLES". This happens
> on the "checking for shl_load" step (line 11221 in configure).
>
> I looked at configure.ac to see if there were any clues. I can't tell
> which line in configure.ac produces the offending line in configure
> (not enough autoconf skills). In an earlier gcc (3.3.3) there was a
> similar issue, and in that case I worked around it by removing
> "GLIBCPP_CHECK_COMPILER_VERSION" from the configure.in file. But that
> line doesn't exist in configure.ac and attempts to find something
> analogous didn't get me anywhere.
GCC_NO_EXECUTABLES, in config/no-executables.m4, redefines
AC_LINK_IFELSE to produce that error message.
Ian