This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
support for GCC4.0's fvisibility option in JNIEXPORT macro
- From: "Jan Nijtmans" <nijtmans at users dot sourceforge dot net>
- To: java-patches at gcc dot gnu dot org
- Date: Tue, 27 Mar 2007 09:58:09 +0200
- Subject: support for GCC4.0's fvisibility option in JNIEXPORT macro
As suggested by Tom Tromey, hereby I submit the following patch to gcj
See:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30999
Changelog entry:
2007-??-?? Jan Nijtmans <nijtmans@users.sourceforge.net>
* jni_md.h: Add the possibility to compile jni code with.
-fvisibility=hidden. This causes all symbols to be hidden
except the JNI functions which need to be exported.
The patch which implements this is here:
<http://gcc.gnu.org/bugzilla/attachment.cgi?id=13126&action=view>
When using GCC < 4.0 or when using any other compiler, this patch does
no harm.
Regards,
Jan Nijtmans