libtool and gcj

2002-02-23 Thread Anthony Green
I've been using a hacked version of libtool to build shared libraries of java code in with gcj. The one problem I had to work around is that libtool insists on adding "-DPIC" to the compilation line. gcj's -D is different from gcc and g++. My hack is to simply strip out the "-D". However - now

Re: libtool and gcj

2002-03-01 Thread Anthony Green
On Fri, 2002-03-01 at 00:19, Per Bothner wrote: > Of course the real fix involves fixing ltmain.sh, but that goes > beyond my ability to peer into the bowels of libtool. The other bad thing I should mention is the test to see if gcj can use both -c and -o. This test is failing for some unknown r

Re: libtool and gcj

2002-03-01 Thread Anthony Green
On Fri, 2002-03-01 at 07:15, Albert Chin wrote: > What version of gcj are you using? The trunk of the GCC tree (and the 3.1 branch). AG ___ Libtool mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/libtool

Re: libtool and gcj (patch)

2002-03-01 Thread Anthony Green
On Fri, 2002-03-01 at 12:19, Per Bothner wrote: > This patch to libtool.m4 fixes two problems: > > (1) Set ac_compile so the proper compiler and flags are > used when running tests. Strangely, configure reports that the -c -o test still fails although I'm not seeing the build failure I attribute

No static libraries?

2002-03-01 Thread Anthony Green
I think this is my final real problem with the CVS version of libtool (once Per's patch is applied). Libtool isn't building static libraries for my project, although it does try to install them (and fail). Configuring with --disable-static is my work around. Any ideas? AG

Re: libtool and gcj (patch)

2002-03-01 Thread Anthony Green
On Fri, 2002-03-01 at 12:19, Per Bothner wrote: > (1) Set ac_compile so the proper compiler and flags are > used when running tests. I take what I previously said about this part of the patch back. It doesn't appear to fix anything for me. Is there some other change which is missing? AG ___

Re: No static libraries?

2002-03-01 Thread Anthony Green
On Fri, 2002-03-01 at 15:32, Albert Chin wrote: > You need to be more specific. > 1. Does it fail while configuration your application to detect > that static libraries can be built? I don't know what you mean exactly. > 2. For what compiler (C, C++, GCJ)? GCJ (however, some of the li

gcj libtool patches so far

2002-03-01 Thread Anthony Green
This combination of Per's -DPIC change and Albert's -c -o change appears to work best. I've appended it below. The only problem left is the static library problem previously reported. Thanks! AG 2001-03-01 Anthony Green <[EMAIL PROTECTED]> * libtool.m4 (A