This is the mail archive of the 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]

[PATCH] Fix bootstrap after changes to libcpp (part 2)

Although Andrew Pinski's patch fixes bootstrap on both
powerpc-apple-darwin and i386-unknown-freebsd4.9, its not enough
to cure the failure on i686-pc-cygwin.  In addition to -lintl,
libcpp's makedepend also needs to link against -liconv.  However,
thanks to Andrew's patch, I now know what the necessary fix looks

The following patch allows bootstrap on i686-pc-cygwin to proceed past
the makedepend link failure in libcpp.  I've not committed this as obvious
as I'm not sure this might not create problems on hosts without -liconv.
Ok for mainline?

[p.s. I think the AC_PREREQ(2.57) in libcpp/ needs to be
upgraded to 2.58, as libcpp/aclocal.m4 contains an AC_PREREQ(2.58).
Whilst investigating this problem, I upgraded autoconf to 2.57 on the
advice of the error message, only to be informed by a second error
that I need to upgrade again to 2.58!]

2004-06-06  Roger Sayle  <>
	    Andrew Pinski  <>

	* (LIBICONV): Declare.
	(makedepend_LDADD): Use LIBICONV.
	* Regenerate.

RCS file: /cvs/gcc/gcc/libcpp/,v
retrieving revision 1.4
diff -c -3 -p -u -p -r1.4
---	6 Jun 2004 04:23:01 -0000	1.4
+++	6 Jun 2004 13:55:42 -0000
@@ -14,8 +14,9 @@ noinst_HEADERS = \
 	include/symtab.h internal.h system.h ucnid.h

 noinst_PROGRAMS = makedepend
-makedepend_LDADD = libcpp.a ../libiberty/libiberty.a $(LIBINTL)
+makedepend_LDADD = libcpp.a ../libiberty/libiberty.a $(LIBINTL) $(LIBICONV)


Roger Sayle,                         E-mail:
OpenEye Scientific Software,         WWW:
Suite 1107, 3600 Cerrillos Road,     Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87507.         Fax: (+1) 505-473-0833

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