6588413: Use -fvisibility=hidden for gcc compiles

Add option for gcc 4 and above, define JNIEXPORT and JNIIMPORT to visibility=default, add for jio_snprintf and others since -fvisibility=hidden overrides --version-script definitions.

Reviewed-by: kamg, never
This commit is contained in:
Coleen Phillimore 2011-02-01 11:23:19 -05:00
parent 7b4f8073f0
commit cba53708ec
17 changed files with 50 additions and 82 deletions

View file

@ -2585,7 +2585,7 @@ int jio_vfprintf(FILE* f, const char *fmt, va_list args) {
}
int jio_printf(const char *fmt, ...) {
JNIEXPORT int jio_printf(const char *fmt, ...) {
int len;
va_list args;
va_start(args, fmt);