This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: compiling with shared libraries
Per Bothner writes:
> Leaving out the -Wl,-Bsymbolic works:
>
> $ gcj -shared -o kawa.so ./.libs/*.o
> $ gcj -o kawa-bin --main=kawa.repl kawa.so
> $ LD_LIBRARY_PATH=. ./kawa-bin
> #|kawa:1|#
>
> This is gcc (GCC) 4.1.1 20061011 (Red Hat 4.1.1-30)
> as installed on Fedora Core 6.
I think I may know what causes this. Please try one experiment:
compile everything PIC, including the executable.
Andrew.