[7u40] Request for review: [macosx] jawt_md.h shipped with jdk is outdated
David DeHaven
david.dehaven at oracle.com
Fri May 17 07:25:27 PDT 2013
> Hi David,
>
> The fix looks good to me. Only one question:
>
> src/macosx/javavm/export/jni_md.h
>> 29 #define JNIEXPORT
>
> Does the empty #define imply that when building a jni lib on Mac, it should export all of its symbols by default?
It depends on gcc's visibility setting, but yes, by default all symbols are exported.
JDK8 has a better jni_md.h that sets JNIEXPORT to __attribute__(visibility(("default"))). That change should be backported, but should probably need to be done under a different bug ID. I suppose I could sneak it in here :)
-DrD-
More information about the macosx-port-dev
mailing list