[Bug java/21206] gcj seems not to pass the option to ld correctly
r dot emrich at de dot tecosim dot com
gcc-bugzilla@gcc.gnu.org
Thu Feb 23 11:04:00 GMT 2006
------- Comment #7 from r dot emrich at de dot tecosim dot com 2006-02-23 11:04 -------
Subject: Re: gcj seems not to pass the option to ld correctly
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?
Rainer
P.S.: In the mean time I try to do a complete bootstrap and testsuite run
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21206
More information about the Gcc-bugs
mailing list