8210705: Stop exporting all symbols on macosx
Reviewed-by: erikj
This commit is contained in:
parent
3910193204
commit
6d9cf91bf0
@ -36,9 +36,7 @@ ifeq ($(TOOLCHAIN_TYPE), gcc)
|
||||
LAUNCHER_CFLAGS += -fvisibility=hidden
|
||||
LDFLAGS_JDKEXE += -Wl,--exclude-libs,ALL
|
||||
else ifeq ($(TOOLCHAIN_TYPE), clang)
|
||||
ifneq ($(OPENJDK_TARGET_OS), macosx)
|
||||
LAUNCHER_CFLAGS += -fvisibility=hidden
|
||||
endif
|
||||
LAUNCHER_CFLAGS += -fvisibility=hidden
|
||||
else ifeq ($(TOOLCHAIN_TYPE), solstudio)
|
||||
LAUNCHER_CFLAGS += -xldscope=hidden
|
||||
else ifeq ($(TOOLCHAIN_TYPE), xlc)
|
||||
|
@ -46,11 +46,9 @@ ifeq ($(TOOLCHAIN_TYPE), gcc)
|
||||
LDFLAGS_JDKLIB += -Wl,--exclude-libs,ALL
|
||||
EXPORT_ALL_SYMBOLS := -fvisibility=default
|
||||
else ifeq ($(TOOLCHAIN_TYPE), clang)
|
||||
ifneq ($(OPENJDK_TARGET_OS), macosx)
|
||||
CFLAGS_JDKLIB += -fvisibility=hidden
|
||||
CXXFLAGS_JDKLIB += -fvisibility=hidden
|
||||
EXPORT_ALL_SYMBOLS := -fvisibility=default
|
||||
endif
|
||||
CFLAGS_JDKLIB += -fvisibility=hidden
|
||||
CXXFLAGS_JDKLIB += -fvisibility=hidden
|
||||
EXPORT_ALL_SYMBOLS := -fvisibility=default
|
||||
else ifeq ($(TOOLCHAIN_TYPE), solstudio)
|
||||
CFLAGS_JDKLIB += -xldscope=hidden
|
||||
CXXFLAGS_JDKLIB += -xldscope=hidden
|
||||
|
@ -26,9 +26,11 @@
|
||||
#ifndef macosx_port_awt_debug_h
|
||||
#define macosx_port_awt_debug_h
|
||||
|
||||
#include "jni.h"
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
bool ShouldPrintVerboseDebugging();
|
||||
JNIEXPORT bool ShouldPrintVerboseDebugging();
|
||||
|
||||
#define kInternalError "java/lang/InternalError"
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import <JavaNativeFoundation/JavaNativeFoundation.h>
|
||||
|
||||
@interface NSApplicationAWT : NSApplication <NSUserNotificationCenterDelegate> {
|
||||
JNIEXPORT @interface NSApplicationAWT : NSApplication <NSUserNotificationCenterDelegate> {
|
||||
NSString *fApplicationName;
|
||||
NSWindow *eventTransparentWindow;
|
||||
NSTimeInterval dummyEventTimestamp;
|
||||
@ -57,5 +57,5 @@
|
||||
|
||||
@end
|
||||
|
||||
void OSXAPP_SetApplicationDelegate(id <NSApplicationDelegate> delegate);
|
||||
JNIEXPORT void OSXAPP_SetApplicationDelegate(id <NSApplicationDelegate> delegate);
|
||||
|
||||
|
@ -23,11 +23,17 @@
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Must include this before JavaNativeFoundation.h to get jni.h from build
|
||||
*/
|
||||
#include "jni.h"
|
||||
#include "jni_util.h"
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import <JavaNativeFoundation/JavaNativeFoundation.h>
|
||||
|
||||
|
||||
@interface PropertiesUtilities : NSObject
|
||||
JNIEXPORT @interface PropertiesUtilities : NSObject
|
||||
|
||||
+ (NSString *) javaSystemPropertyForKey:(NSString *)key withEnv:(JNIEnv *)env;
|
||||
|
||||
|
@ -26,6 +26,8 @@
|
||||
#ifndef __THREADUTILITIES_H
|
||||
#define __THREADUTILITIES_H
|
||||
|
||||
#include "jni.h"
|
||||
|
||||
#import <pthread.h>
|
||||
|
||||
#import "AWT_debug.h"
|
||||
@ -135,6 +137,6 @@ __attribute__((visibility("default")))
|
||||
+ (void)performOnMainThread:(SEL)aSelector on:(id)target withObject:(id)arg waitUntilDone:(BOOL)wait;
|
||||
@end
|
||||
|
||||
void OSXAPP_SetJavaVM(JavaVM *vm);
|
||||
JNIEXPORT void OSXAPP_SetJavaVM(JavaVM *vm);
|
||||
|
||||
#endif /* __THREADUTILITIES_H */
|
||||
|
Loading…
Reference in New Issue
Block a user