compiling with shared libraries

Andrew Haley aph@redhat.com
Wed Dec 20 11:52:00 GMT 2006


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.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /