From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30612 invoked by alias); 21 Apr 2010 18:52:21 -0000 Received: (qmail 30509 invoked by uid 48); 21 Apr 2010 18:52:18 -0000 Date: Wed, 21 Apr 2010 18:52:00 -0000 Message-ID: <20100421185218.30508.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug java/43839] libjava incorrectly uses -liconv in testsuite, jni.exp when using --with-libiconv-prefix In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "mrs at gcc dot gnu dot org" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2010-q2/txt/msg00012.txt.bz2 ------- Comment #2 from mrs at gcc dot gnu dot org 2010-04-21 18:52 ------- Found it: if { [istarget "*-*-darwin*"] } { lappend cxxflags -shared-libgcc -lgcj -liconv } in libjava/testsuite/libjava.jni/jni.exp. This needs the proper -L added just before -liconv, or libgcj linked with -L... -liconv. So, the question is, which solution is desired? Normally I like adding -liconv to the libgcj link line, so that all consumers of libgcj just work. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43839