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

PATCH: PR libjava/3207: Ignore _AC_ARG_VAR_PRECIOUS


Both libstdc++ and libjava have the same kludge to ignore
_AC_ARG_VAR_PRECIOUS to make sure that CC, CFLAGS, CXX, CXXFLAGS
and LDFLAG won't be 'precious' to support multilibs. However,
the new libtool makes the kludge ineffective. As the result,
CXX and CXXFLAGS in libjava are 'precious' and libjava won't build
since the new libtool was introduced:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32078

This kludge totally ignores _AC_ARG_VAR_PRECIOUS and allows me to
build libjava. For some reason, libstdc++ is OK. I assume that
the old kludge in libstdc++  is no longer needed for the new libtool.


H.J.
---
2007-05-27  H.J. Lu  <hongjiu.lu@intel.com>

	PR libjava/32078
	* configure.ac: Add "AC_SUBST(CPPFLAGS)".  Don't rename back
	_AC_ARG_VAR_PRECIOUS.
	* configure: Regenerated.

--- libjava/configure.ac.hide	2007-03-27 06:40:32.000000000 -0700
+++ libjava/configure.ac	2007-05-27 17:13:32.000000000 -0700
@@ -102,9 +102,10 @@ CXXFLAGS="$CXXFLAGS -fno-builtin"
 AC_PROG_CC
 AC_PROG_CXX
 CXXFLAGS="$save_CXXFLAGS"
-m4_rename([glibcxx_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])
+#m4_rename([glibcxx_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])
 AC_SUBST(CFLAGS)
 AC_SUBST(CXXFLAGS)
+AC_SUBST(CPPFLAGS)
 AC_SUBST(LDFLAGS)
 
 AM_INIT_AUTOMAKE([1.9.0])


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