This is the mail archive of the java-patches@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] | |
Hello, this patch fixes some issues in libjava for windows targets. It addresses for now only 32-bit target, but for JNICALL definition I introduced already logic for 64-bit windows target too as preparation. One nit remains, but I am not quite sure how to approach it. In ltmain.sh it is necessary to set valid_a_lib to yes, so that a complete build is possible. This is a libtool issue and maybe Ralf could take care here. If I understand correct, here should be module instead of library used. But well, Ralf might know better. ChangeLog 2011-04-05 Kai Tietz * configure.ac (libgcj_ld_export_all): Set for windows native targets to export-all-symbols. (LIBGCJ_LD_EXPORT_ALL): Export libgcj_ld_export_all. * Makefile.am (libgcj_la_LDFLAGS): Add LIBGCJ_LD_EXPORT_ALL. * sysdep/i386/backtrace.h (MAIN_FUNC): Define for windows native targets to DllMain. * gcj/javaprims.h (JNICALL): Define it dependent for different windows targets. * include/jni_md.h: Likewise. * java/lang/Class.h (_Jv_JNI_ToReflectedField): Mark JNICALLS for friends. (_Jv_JNI_ToReflectedMethod): Likewise. * java/lang/reflect/Field.h (_Jv_JNI_ToReflectedField): Likewise. * java/lang/reflect/Constructor.h (_Jv_JNI_ToReflectedMethod): Likewise. * configure: Regenerated. * Makefile.in: Regenerated. * include/Makefile.in: Regenerated. * testsuite/Makefile.in: Regenerated. * gcj/Makefile.in: Regenerated. Tested for i686-w64-mingw32. Ok for apply? Regards, Kai
Attachment:
fix_mingw_entry.txt
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |