Hi, For 8u40...
There should be a hook from the open CompileNativeLibraries to a corresponding makefile in the custom/closed repository to allow build instructions to be in the right place.
I think all it takes is to add a conditional include; is there a better way?
Webrev @ http://cr.openjdk.java.net/~rriggs/webrev-compile-native/ If that's a good/sufficient way, I'll make a bug and cleanup the webrev. Thanks, Roger