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?


Erik Poupaert writes:
 > 
 > 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?

  -E, --export-dynamic        Export all dynamic symbols

.a files have no dynamic symbols.

Andrew.


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