This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: java/4972: undefined reference to `libiconv'


The following reply was made to PR java/4972; it has been noted by GNATS.

From: Craig Rodrigues <rodrigc@mediaone.net>
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          


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]