This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 3.4 installation problems: libc is somewhere unusual


On Fri, 2003-09-12 at 12:27, Paul Jarc wrote:
> checking for sin in -lm... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.

libstdc++-v3/configure does a test link using $ac_link, and if that
fails it sets gcc_no_executable to disable later link tests.  There is
support to make this work for crosses, but for a native it will fail
like you saw.  So I think the problem is that $ac_link didn't work. 
Maybe because the -Wl flags were missing?

$ac_link gets set from flags passed down by the toplevel configure.  See
EXTRA_TARGET_FLAGS.  So I think if you add the -Wl options to
CFLAGS_FOR_TARGET, then they will end up in libstdc++'s $ac_link, and
configure should work.  There is also CC_FOR_TARGET and LD_FOR_TARGET,
you might want to modify.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]