mirror of
https://github.com/corda/corda.git
synced 2025-01-17 10:20:02 +00:00
fix linux->darwin cross-compile
There were two issues: the linux->darwin cross compiler is more stringent about unused variables, and the makefile specified flags for building ON darwin that were actually applicable whenever we are building FOR darwin.
This commit is contained in:
parent
cb11e21f95
commit
de21913d13
3
makefile
3
makefile
@ -455,6 +455,9 @@ ifeq ($(build-platform),darwin)
|
|||||||
cflags += -I/System/Library/Frameworks/JavaVM.framework/Headers/ \
|
cflags += -I/System/Library/Frameworks/JavaVM.framework/Headers/ \
|
||||||
-Wno-deprecated-declarations
|
-Wno-deprecated-declarations
|
||||||
build-lflags += -framework CoreFoundation
|
build-lflags += -framework CoreFoundation
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(platform),darwin)
|
||||||
soname-flag =
|
soname-flag =
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -600,19 +600,16 @@ intercept(Thread* t, object c, const char* name, const char* spec,
|
|||||||
if (m) {
|
if (m) {
|
||||||
PROTECT(t, m);
|
PROTECT(t, m);
|
||||||
|
|
||||||
object clone;
|
methodFlags(t, m) |= ACC_NATIVE;
|
||||||
|
|
||||||
if (updateRuntimeData) {
|
if (updateRuntimeData) {
|
||||||
clone = methodClone(t, m);
|
object clone = methodClone(t, m);
|
||||||
|
|
||||||
// make clone private to prevent vtable updates at compilation
|
// make clone private to prevent vtable updates at compilation
|
||||||
// time. Otherwise, our interception might be bypassed by calls
|
// time. Otherwise, our interception might be bypassed by calls
|
||||||
// through the vtable.
|
// through the vtable.
|
||||||
methodFlags(t, clone) |= ACC_PRIVATE;
|
methodFlags(t, clone) |= ACC_PRIVATE;
|
||||||
}
|
|
||||||
|
|
||||||
methodFlags(t, m) |= ACC_NATIVE;
|
|
||||||
|
|
||||||
if (updateRuntimeData) {
|
|
||||||
object native = makeNativeIntercept(t, function, true, clone);
|
object native = makeNativeIntercept(t, function, true, clone);
|
||||||
|
|
||||||
PROTECT(t, native);
|
PROTECT(t, native);
|
||||||
|
Loading…
Reference in New Issue
Block a user