This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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: jni and static libgcj and friends? (Bug in libtool)


Hi Jeff,

On Thu, Feb 28, 2002 at 11:04:09AM -0500, Jeff Sturm wrote:
> On Thu, 28 Feb 2002, Martin Kahlert wrote:
> > /usr/bin/ksh ./libtool --tag=GCJ --mode=compile -prefer-pic
> 
> Something went wrong here.  You might try installing the automake
> recommended in libjava/HACKING...
> 
> ftp://sources.redhat.com/pub/java/automake-gcj-1.4.tar.gz
> 
> ...or else give up and patch Makefile.in by hand.

Did that, but it did not work either.

Then i went into obj_titan/sparc-sun-solaris2.7/sparcv9/libjava
and invoked by hand
./libtool -prefer-pic --mode=compile
result:
libtool: unrecognized option `-prefer-pic'
Try `libtool --help' for more information.

The problem seems to be a bug in libtool.
The -prefer-pic option is not let through by the $arg checking code.
I added without much thought a
   -prefer-pic)
   ;;
below the case
-dlopen (around line 556)
inside it, and it got further. I hope that will work now.

Thanks,
Martin.

-- 
The early bird catches the worm. If you want something else for       
breakfast, get up later.


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