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]

Re: PATCH: PR libjava/32098: New libtool doesn't support libjava


On Wed, May 30, 2007 at 04:17:28PM +0200, Paolo Bonzini wrote:
> H. J. Lu wrote:
> >On Wed, May 30, 2007 at 08:09:25AM +0200, Paolo Bonzini wrote:
> >>>Gcj isn't available for compile-and-link test when building libjava.
> >>I found a solution, which is to add a ltgcc.m4 file to the toplevel, 
> >>where we can override macros as we wish.  For example, you can put a 
> >>copy of the Java configuration macro there with your hack.  I will 
> >>approve such a patch.
> >
> >I have no idea how to set it up.
> 
> Please stop this "I have no idea" attitude, let's try to be constructive.

I have been very patient up to now. Why can't you try your own idea?

> 
> To test it, you just create ltgcc.m4 in toplevel (both gcc and src), and 
> rerun aclocal in libjava.  Then we'll have to rerun aclocal manually in 
> all directories, but let's first make a working patch.
> 

I tried m4_rename and m4_pushdef in libjava like

--- configure.ac.ltgcc	2007-05-28 20:04:33.000000000 -0700
+++ configure.ac	2007-05-30 06:56:44.000000000 -0700
@@ -431,6 +431,9 @@ dnl gjdoc?
 dnl gtk-cairo -- just export here...
 dnl --enable-regen-headers?
 
+m4_rename([_LT_LANG_GCJ_CONFIG], [_LT_LANG_GCJ_CONFIG_renamed])
+m4_rename([_LTGCC_LANG_GCJ_CONFIG], [_LT_LANG_GCJ_CONFIG])
+
 # Only use libltdl for non-newlib builds.
 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
    AC_LIBLTDL_CONVENIENCE

aclocal won't include ltgcc.m4. When I include it in configure.ac,
it still doesn't work. The order of ltgcc.m4 and libtool.m4 may be
important.

Sorry, I have too many other gcc things to deal with at the moment. I
don't think I can spend more time on this.


H.J.


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