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]

-export-dynamic with .a files?


It looks like .a files cannot be exported dynamically?

$ gcc -c TestJNI.c -o jni-c-part.o

$ ar -crs jni-c-part.a jni-c-part.o

$ gcj -c -fjni TestJNI.java -o jni-java-part.o
$ gcj -export-dynamic --main=TestJNI jni-c-part.o jni-java-part.o -o
testjni --> works
$ gcj -export-dynamic --main=TestJNI jni-c-part.a jni-java-part.o -o
testjni --> won't work

Is there a reason why -export-dynamic doesn't work with .a files?


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