prevent openjdk-src build from trying to load the installed 'JavaRuntimeSupport' (fixes #128)

This commit is contained in:
Joshua Warner 2013-12-07 18:49:23 -07:00
parent 773417ab2b
commit 94f5888f97
2 changed files with 21 additions and 3 deletions

View File

@ -220,9 +220,9 @@ ifneq ($(android),)
$(platform-lflags) \
-lstdc++
ifeq ($(platform),linux)
classpath-lflags += -lrt
endif
ifeq ($(platform),linux)
classpath-lflags += -lrt
endif
classpath-objects = \
$(call cpp-objects,$(luni-cpps),$(luni-native),$(build)) \
@ -1970,6 +1970,9 @@ ifeq ($(ios),true)
< "$(openjdk-src)/solaris/native/java/lang/UNIXProcess_md.c" \
> $(build)/openjdk/UNIXProcess_md.c
endif
if [ -f openjdk-patches/$(notdir $(<)).patch ]; then \
( cd $(build) && patch -p0 ) < openjdk-patches/$(notdir $(<)).patch; \
fi
$(cc) -fPIC $(openjdk-extra-cflags) $(openjdk-cflags) \
$(optimization-cflags) -w -c $(build)/openjdk/$(notdir $(<)) \
$(call output,$(@)) -Wno-return-type

View File

@ -0,0 +1,15 @@
--- openjdk/java_props_macosx.c
+++ openjdk/java_props_macosx.c
@@ -37,11 +37,7 @@
// need dlopen/dlsym trick to avoid pulling in JavaRuntimeSupport before libjava.dylib is loaded
static void *getJRSFramework() {
- static void *jrsFwk = NULL;
- if (jrsFwk == NULL) {
- jrsFwk = dlopen("/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/JavaRuntimeSupport", RTLD_LAZY | RTLD_LOCAL);
- }
- return jrsFwk;
+ return NULL;
}
static char *getPosixLocale(int cat) {