This is the mail archive of the
mailing list for the GCC project.
Re: libtool: link order problem affecting gij
- To: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Subject: Re: libtool: link order problem affecting gij
- From: Jeff Sturm <jsturm at one-point dot com>
- Date: Sat, 12 May 2001 13:13:33 -0400 (EDT)
- cc: java at gcc dot gnu dot org, gcc at gcc dot gnu dot org
On Sun, 13 May 2001, Bryce McKinlay wrote:
> libtool inserting lib flags ("-lgcc_s -lc -lgcc_s") into the gcj link
> command line _before_ other lib flags which we are passing to it. This
> means that libc is being linked before libpthread, which is bad:
Yeah. This has been happening for a little while:
> I don't understand why libtool is adding these flags or where they are
> coming from.
Look at dependency_libs in libsupc++.la.
> Is this a libtool bug?
Probably. I've tried reordering libraries in libjava/Makefile
with no effect. (But admittedly, library order becomes complex when
interlibrary dependencies are taken into account.)
Aside from that, libtool is ignoring the setting of
`build_libtool_need_lc' only when called with --tag=CXX.
> I think this problem only affects the trunk.
Does Zack's patch help?
By eliminating libsupc++ from the build, its side effects (linking with
explicit -lc) should go away.