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]

Re: GCC Release Delay




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



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