mirror of
https://github.com/corda/corda.git
synced 2025-01-01 02:36:44 +00:00
prevent openjdk-src build from trying to load the installed 'JavaRuntimeSupport' (fixes #128)
This commit is contained in:
parent
773417ab2b
commit
94f5888f97
9
makefile
9
makefile
@ -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
|
||||
|
15
openjdk-patches/java_props_macosx.c.patch
Normal file
15
openjdk-patches/java_props_macosx.c.patch
Normal 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) {
|
Loading…
Reference in New Issue
Block a user