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: CNI and interface methods


On Fri, 03 Apr 2009 09:37:40 +0100, Andrew Haley wrote:
> It's because you're using -Bsymbolic but not -fpic.  -Bsymbolic is
> dangerous, and any use of it without PIC means instant death.  So,
> compile everything PIC, even the executable, and you'll be fine.
> That worked for me on your example.

Thanks for this. I thought I already was compiling everything -fpic,
but maybe I missed something. Was there a particular make rule that was
in need of -fpic, that you altered?  I still can't find it.

(Actually I was using -fPIC, but I've tried again with -fpic instead, in
case it made a difference... still getting the same segfault though.)

Stephen


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