From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9887 invoked by alias); 14 Jan 2002 04:06:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 9862 invoked by uid 71); 14 Jan 2002 04:06:02 -0000 Date: Sun, 13 Jan 2002 20:06:00 -0000 Message-ID: <20020114040601.9861.qmail@sources.redhat.com> To: tromey@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Craig Rodrigues Subject: Re: java/4972: undefined reference to `libiconv' Reply-To: Craig Rodrigues X-SW-Source: 2002-01/txt/msg00502.txt.bz2 List-Id: The following reply was made to PR java/4972; it has been noted by GNATS. From: Craig Rodrigues To: George.R.Goffe@seagate.com Cc: rodrigc@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, george.goffe@seagate.com, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org, tromey@gcc.gnu.org Subject: Re: java/4972: undefined reference to `libiconv' Date: Sun, 13 Jan 2002 23:00:52 -0500 George, Can you do the following: (1) Apply the attached fix to gcc/gcc/configure. (2) Re-run the configure script, the way you normally do, ie.: PATH=whatever ../configure --prefix=/usr/lsd/$osname --verbose \ --with-libiconv-prefix=/usr/lsd/$osname \ --with-gnu-ld Index: configure =================================================================== RCS file: /cvs/gcc/gcc/gcc/configure,v retrieving revision 1.586 diff -u -r1.586 configure --- configure 2002/01/10 22:21:37 1.586 +++ configure 2002/01/14 03:59:06 @@ -59,8 +59,6 @@ ac_help="$ac_help --enable-nls use Native Language Support (default)" ac_help="$ac_help - --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" -ac_help="$ac_help --disable-nls do not use Native Language Support" ac_help="$ac_help --with-included-gettext use the GNU gettext library included here" @@ -4396,8 +4394,8 @@ withval="$with_libiconv_prefix" for dir in `echo "$withval" | tr : ' '`; do - if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi - if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi + if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; export CPPFLAGS; fi + if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; export LDFLAGS; fi done fi -- Craig Rodrigues http://www.gis.net/~craigr rodrigc@mediaone.net