This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug target/21206] gcj seems not to pass the option to ld correctly
- From: Rainer Emrich <r dot emrich at de dot tecosim dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: gcc-bugzilla at gcc dot gnu dot org, java at gcc dot gnu dot org, wilson at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Thu, 23 Feb 2006 17:16:51 +0100
- Subject: Re: [Bug target/21206] gcj seems not to pass the option to ld correctly
- Openpgp: id=4E8261E5; url=sks.keyserver.penguin.de
- References: <43FD96AA.70004@de.tecosim.com> <17405.47965.904151.826789@zapata.pink> <43FDCA98.4070803@de.tecosim.com> <17405.55307.291795.71046@zapata.pink>
Andrew Haley schrieb:
> Rainer Emrich writes:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Andrew Haley schrieb:
> > > Rainer Emrich writes:
> > > > The config.log in libjava has two entries for libiconv:
> > > > LIBICONV
> > > > which is
> > > > LIBICONV='/appl/shared/gnu/Linux/ia64-unknown-linux-gnu/lib/libiconv.so
> > > > -Wl,-rpath -Wl,/appl/shared/gnu/Linux/ia64-unknown-linux-gnu/lib'
> > > > in my case.
> > > >
> > > > The second is
> > > > LTLIBICONV
> > > > which is
> > > > LTLIBICONV='-L/appl/shared/gnu/Linux/ia64-unknown-linux-gnu/lib -liconv
> > > > -R/appl/shared/gnu/Linux/ia64-unknown-linux-gnu/lib'
> > > > in my case.
> > > >
> > > > I changed the libgcj.spec file manually to the second. That seems to work.
> > > > So, my conclusion is to change the libgcj.spec.in.
> > > > The following line:
> > > > *lib: -lgcj -lm @LIBICONV@ @GCSPEC@ @THREADSPEC@ @ZLIBSPEC@ @SYSTEMSPEC@
> > > > %(libgcc) %(liborig)
> > > > should be changed to
> > > > *lib: -lgcj -lm @LTLIBICONV@ @GCSPEC@ @THREADSPEC@ @ZLIBSPEC@ @SYSTEMSPEC@
> > > > %(libgcc) %(liborig)
> > > >
> > > > Any comments?
> > >
> > > Looks right to me. BTW, what failure caused you to find this?
>
> > See the following messages:
> >
> > http://gcc.gnu.org/ml/gcc/2006-02/msg00415.html
> > http://gcc.gnu.org/ml/gcc/2006-02/msg00482.html
>
> Yes, I agree with your reasoning. AFAIK Mark Mitchell has to approve
> this as it's for the release, but it's OK by me if it passes
> bootstrap.
>
> I don't see this problem on my system because LIBICONV and LTLIBICONV
> are both null. AFAIK that's because iconv is in libc.
>
> Andrew.
Bootstrap passed at my site for ia64-unknown-linux-gnu.
Testsuite run for libjaava gives:
=== libjava Summary ===
# of expected passes 4009
# of unexpected failures 1
# of expected failures 10
# of untested testcases 8
Rainer
--
Rainer Emrich
TECOSIM GmbH
Im Eichsfeld 3
65428 Rüsselsheim
Phone: +49(0)6142/8272 12
Mobile: +49(0)163/56 949 20
Fax.: +49(0)6142/8272 49
Web: www.tecosim.com