This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: java/4972: undefined reference to `libiconv'
- From: Craig Rodrigues <rodrigc at mediaone dot net>
- To: George dot R dot Goffe at seagate dot com
- Cc: rodrigc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, george dot goffe at seagate dot com, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org, tromey at gcc dot gnu dot org
- Date: Sun, 13 Jan 2002 23:00:52 -0500
- Subject: Re: java/4972: undefined reference to `libiconv'
- References: <OFDB41312C.3B180420-ON88256B41.000A5006@notes.seagate.com>
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