diff options
Diffstat (limited to 'cs')
-rw-r--r-- | cs/Android.mk | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/cs/Android.mk b/cs/Android.mk index ca79501..12eef22 100644 --- a/cs/Android.mk +++ b/cs/Android.mk @@ -8,6 +8,12 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. LOCAL_CFLAGS := -fPIC +# This forces a 64-bit build for Java6 +ifneq ($(filter 1.6%,$(java_version)),) + LOCAL_CFLAGS += -m64 + LOCAL_LDFLAGS += -m64 +endif + LOCAL_NO_DEFAULT_COMPILER_FLAGS := true LOCAL_MODULE:= libneo_cs @@ -15,10 +21,3 @@ LOCAL_MODULE:= libneo_cs LOCAL_SHARED_LIBRARIES := libneo_util include $(BUILD_HOST_SHARED_LIBRARY) - -# this forces us into 64 bit mode, even though for the non-simulator builds we -# mostly don't do that. Java on Hardy is 64 bit, and rather than finding a 32 -# bit java build, just build this in 64 bit. -$(LOCAL_BUILT_MODULE): HOST_GLOBAL_CFLAGS:= -$(LOCAL_BUILT_MODULE): HOST_GLOBAL_CPPFLAGS:= -$(LOCAL_BUILT_MODULE): HOST_GLOBAL_LDFLAGS:= |