[PATH] Fix PR 4972, configure
Craig Rodrigues
rodrigc@mediaone.net
Sun Jan 13 21:28:00 GMT 2002
Hi,
According to PR 4972:
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4972&database=gcc
If --with-libiconv-prefix is specified during the
configure step, the resulting Makefiles cannot find
the libiconv library. The reason for this is
that LDFLAGS is not properly exported and set
in the Makefile.
Is this OK to commit?
2002-01-15 Craig Rodrigues <rodrigc@gcc.gnu.org>
PR java/4972
* aclocal.m4 (AM_ICONV): Export LDFLAGS and CPPFLAGS.
* Makefile.in (LDFLAGS): Add.
* Makefile, configure: Regenerated.
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.822
diff -u -r1.822 Makefile.in
--- Makefile.in 2002/01/13 12:28:39 1.822
+++ Makefile.in 2002/01/14 05:08:11
@@ -109,6 +109,7 @@
FLEXFLAGS =
AR = ar
AR_FLAGS = rc
+LDFLAGS = @LDFLAGS@
DLLTOOL = dlltool
RANLIB = @RANLIB@
SHELL = /bin/sh
Index: aclocal.m4
===================================================================
RCS file: /cvs/gcc/gcc/gcc/aclocal.m4,v
retrieving revision 1.58
diff -u -r1.58 aclocal.m4
--- aclocal.m4 2001/12/21 02:46:08 1.58
+++ aclocal.m4 2002/01/14 05:08:27
@@ -1104,8 +1104,8 @@
AC_ARG_WITH([libiconv-prefix],
[ --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib], [
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
])
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@mediaone.net
More information about the Gcc-patches
mailing list