mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
OSX Lion build changes
Added JavaVM to include path. Also allow dynamically building with different SDK versions through the OSX_SDK_VERSION and OSX_SDK_SYSROOT environment variables (these default to the previosly hardcoded value of 10.4 and 10.4u respectively).
This commit is contained in:
parent
c7c0a45a61
commit
698138f649
25
makefile
25
makefile
@ -228,17 +228,24 @@ ifeq ($(arch),arm)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(platform),darwin)
|
ifeq ($(platform),darwin)
|
||||||
|
ifeq (${OSX_SDK_SYSROOT},)
|
||||||
|
OSX_SDK_SYSROOT = 10.4u
|
||||||
|
endif
|
||||||
|
ifeq (${OSX_SDK_VERSION},)
|
||||||
|
OSX_SDK_VERSION = 10.4
|
||||||
|
endif
|
||||||
ifneq ($(build-platform),darwin)
|
ifneq ($(build-platform),darwin)
|
||||||
cxx = i686-apple-darwin8-g++ $(mflag)
|
cxx = i686-apple-darwin8-g++ $(mflag)
|
||||||
cc = i686-apple-darwin8-gcc $(mflag)
|
cc = i686-apple-darwin8-gcc $(mflag)
|
||||||
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
|
||||||
sysroot = /opt/mac/SDKs/MacOSX10.4u.sdk
|
sysroot = /opt/mac/SDKs/MacOSX${OSX_SDK_SYSROOT}.sdk
|
||||||
cflags = -I$(sysroot)/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Headers/ \
|
cflags = -I$(sysroot)/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Headers/ \
|
||||||
$(common-cflags) -fPIC -fvisibility=hidden -I$(src)
|
$(common-cflags) -fPIC -fvisibility=hidden -I$(src)
|
||||||
else
|
else
|
||||||
build-cflags = $(common-cflags) -fPIC -fvisibility=hidden -I$(src)
|
build-cflags = $(common-cflags) -fPIC -fvisibility=hidden -I$(src)
|
||||||
|
cflags += -I/System/Library/Frameworks/JavaVM.framework/Headers/
|
||||||
build-lflags += -framework CoreFoundation
|
build-lflags += -framework CoreFoundation
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -257,20 +264,20 @@ ifeq ($(platform),darwin)
|
|||||||
ifneq (,$(filter i386 x86_64 arm,$(build-arch)))
|
ifneq (,$(filter i386 x86_64 arm,$(build-arch)))
|
||||||
converter-cflags += -DOPPOSITE_ENDIAN
|
converter-cflags += -DOPPOSITE_ENDIAN
|
||||||
endif
|
endif
|
||||||
openjdk-extra-cflags += -arch ppc -mmacosx-version-min=10.4
|
openjdk-extra-cflags += -arch ppc -mmacosx-version-min=${OSX_SDK_VERSION}
|
||||||
cflags += -arch ppc -mmacosx-version-min=10.4
|
cflags += -arch ppc -mmacosx-version-min=${OSX_SDK_VERSION}
|
||||||
asmflags += -arch ppc -mmacosx-version-min=10.4
|
asmflags += -arch ppc -mmacosx-version-min=${OSX_SDK_VERSION}
|
||||||
lflags += -arch ppc -mmacosx-version-min=10.4
|
lflags += -arch ppc -mmacosx-version-min=${OSX_SDK_VERSION}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(arch),i386)
|
ifeq ($(arch),i386)
|
||||||
ifeq ($(build-arch),powerpc)
|
ifeq ($(build-arch),powerpc)
|
||||||
converter-cflags += -DOPPOSITE_ENDIAN
|
converter-cflags += -DOPPOSITE_ENDIAN
|
||||||
endif
|
endif
|
||||||
openjdk-extra-cflags += -arch i386 -mmacosx-version-min=10.4
|
openjdk-extra-cflags += -arch i386 -mmacosx-version-min=${OSX_SDK_VERSION}
|
||||||
cflags += -arch i386 -mmacosx-version-min=10.4
|
cflags += -arch i386 -mmacosx-version-min=${OSX_SDK_VERSION}
|
||||||
asmflags += -arch i386 -mmacosx-version-min=10.4
|
asmflags += -arch i386 -mmacosx-version-min=${OSX_SDK_VERSION}
|
||||||
lflags += -arch i386 -mmacosx-version-min=10.4
|
lflags += -arch i386 -mmacosx-version-min=${OSX_SDK_VERSION}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(arch),x86_64)
|
ifeq ($(arch),x86_64)
|
||||||
|
Loading…
Reference in New Issue
Block a user