mirror of
https://github.com/corda/corda.git
synced 2025-01-17 10:20:02 +00:00
fix Mac OS PowerPC cross build
While we can use Linux's jni.h to cross compile the i386 Mac OS build, that doesn't work for the PowerPC one. Now we use the proper /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Headers/jni.h from the sysroot instead.
This commit is contained in:
parent
d520514a87
commit
6014cb93b1
7
makefile
7
makefile
@ -219,13 +219,14 @@ ifeq ($(platform),darwin)
|
|||||||
ar = i686-apple-darwin8-ar
|
ar = i686-apple-darwin8-ar
|
||||||
ranlib = i686-apple-darwin8-ranlib
|
ranlib = i686-apple-darwin8-ranlib
|
||||||
strip = i686-apple-darwin8-strip
|
strip = i686-apple-darwin8-strip
|
||||||
extra-cflags = -I$(JAVA_HOME)/include/linux
|
sysroot = /opt/mac/SDKs/MacOSX10.4u.sdk
|
||||||
|
cflags = -I$(sysroot)/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Headers/ \
|
||||||
|
$(common-cflags) -fPIC -fvisibility=hidden -I$(src)
|
||||||
else
|
else
|
||||||
|
build-cflags = $(common-cflags) -fPIC -fvisibility=hidden -I$(src)
|
||||||
build-lflags += -framework CoreFoundation
|
build-lflags += -framework CoreFoundation
|
||||||
endif
|
endif
|
||||||
|
|
||||||
build-cflags = $(common-cflags) $(extra-cflags) -fPIC -fvisibility=hidden \
|
|
||||||
-I$(src)
|
|
||||||
version-script-flag =
|
version-script-flag =
|
||||||
lflags = $(common-lflags) -ldl -framework CoreFoundation \
|
lflags = $(common-lflags) -ldl -framework CoreFoundation \
|
||||||
-framework CoreServices
|
-framework CoreServices
|
||||||
|
Loading…
Reference in New Issue
Block a user