From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14875 invoked by alias); 23 Feb 2006 15:41:27 -0000 Received: (qmail 14741 invoked by alias); 23 Feb 2006 15:41:24 -0000 Date: Thu, 23 Feb 2006 15:41:00 -0000 Message-ID: <20060223154124.14740.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug java/21206] gcj seems not to pass the option to ld correctly In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "aph at redhat dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-02/txt/msg02654.txt.bz2 List-Id: ------- Comment #10 from aph at redhat dot com 2006-02-23 15:41 ------- Subject: Re: gcj seems not to pass the option to ld correctly 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. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21206