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


H. J. Lu wrote:
On Sun, May 27, 2007 at 04:20:02PM -0400, Charles Wilson wrote:
H.J. Lu wrote:
New libtool calls gcj to test gcj features. However, gcj isn't
fully functional when building libjava since ecj1 isn't available.
As the result, libtool created for libjava isn't really correct.
This patch uses gcc to test gcj features like PIC and "-c -o".
Is there any way to achieve this result without forking libtool? [1,2,3]

That is the best I can find.

No, that's wrong. You can try changing libtool.m4 to run tests on .class files instead; compile them with an old GCJ, and include the bytecode in libtool.m4, using tr or awk to turn ASCII strings into bytecode.


This is a kind of patch that, I think, will be acceptable upstream (it will be accepted as an interim measure in the GCC libtool, but it will have to be included in libtool itself too).

Paolo


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