Howto re-compile ony parts?

Phil Race Phil.Race at Sun.COM
Sun May 11 15:58:45 UTC 2008


Igor Nekrestyanov wrote:
> Thanks Phil!
>
> I just found similar explanation in the jdk\make\common\Makefile-vers.gmk
> ....

> However, it seems to be used on Linux/Solaris only (everything inside 
> is under ifder solaris/linux) and this puzzle me a bit.
> So, it seems if name clashing is primary reason we should be 
> protecting from this on Windows too.
>
> -
I believe its the default behaviour on windows to not export symbols. So 
this isn't needed and the
magic "JNIEXPORT <rtn type> JNICALL" at the top of each of the JNI fn 
declarations expands
into what is needed to force the export :
jni_md.h:#define JNIEXPORT __declspec(dllexport)

-phil.




More information about the build-dev mailing list