patch: use $(CXX_FOR_TARGET) in LIBLINK

Andrew Haley aph@redhat.com
Thu Dec 21 18:18:00 GMT 2006


Adam Megacz writes:
 > 
 > Tom Tromey <tromey@redhat.com> writes:
 > >>>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:
 > 
 > >>> 2006-12-21  Adam Megacz <megacz@cs.berkeley.edu>
 > >>> * Makefile.am: use $(CXX_FOR_TARGET) in LIBLINK.
 > >>> * Makefile.in: regenerate.
 > 
 > > There shouldn't be any difference between CXX and CXX_FOR_TARGET in a
 > > target library.
 > 
 > Yes, I started to wonder about this too.  I've found that the problem
 > of $(CXX)="g++" happens only if I force the configury to regenerate
 > $(target)/libjava/Makefile by doing this:
 > 
 >   rm $(target)/libjava/Makefile
 >   rm $(target)/libjava/config.cache
 >   cd $(target)/libjava/; ./config.status --recheck
 >   cd $(target)/libjava/; ./config.status

Ouch!  You're missing g++ passed in from toplevel.

 > Is this inappropriate usage of the autoconfigury?  If so, what is the
 > approved way to force it to rebuild the Makefile?

Simply touching Makefile.in works, doesn't it?

Andrew.



More information about the Java-patches mailing list