This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC Release Delay
- To: Alexandre Oliva <aoliva at redhat dot com>
- Subject: Re: GCC Release Delay
- From: Jeff Sturm <jsturm at one-point dot com>
- Date: Sun, 17 Jun 2001 23:38:15 -0400 (EDT)
- cc: "H . J . Lu" <hjl at lucon dot org>, Mark Mitchell <mark at codesourcery dot com>, gcc at gcc dot gnu dot org
On 17 Jun 2001, Alexandre Oliva wrote:
> On Jun 17, 2001, "H . J . Lu" <hjl@lucon.org> wrote:
>
> > I have no ideas with libtool passes -lc to gcc.
>
> Probably because some of the libraries being linked in were explicitly
> or implicitly linked with -lc.
It looks as though ltconfig gets it wrong:
# Whether or not to add -lc for building shared libraries.
build_libtool_need_lc=yes
I had fixed this once in my tree, and forgotten about it. I can't tell if
it fixes the reported problem, but it certainly affects the ordering of
DT_NEEDED entries in libgcj.so:
--- ltcf-c.orig Sun Jun 17 23:02:51 2001
+++ ltcf-c.sh Sun Jun 17 23:03:38 2001
@@ -783,7 +783,7 @@
cat conftest.err 1>&5
soname=conftest
lib=conftest
- libobjs=conftest.$ac_objext
+ libobjs=conftest.$objext
deplibs=
wl=$ac_cv_prog_cc_wl
compiler_flags=-v