diff options
author | Ying Wang <wangying@google.com> | 2010-06-14 16:25:24 -0700 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2010-06-14 17:38:32 -0700 |
commit | df54557c3fd46b9c96c3471da2a75487a8fdc2dc (patch) | |
tree | c3b94c8d27b08dc31a142d810ed4eb0b1c2583d8 /util | |
parent | 07dd92d42a6c10f06a25a5b021accd8848a8e029 (diff) | |
download | clearsilver-df54557c3fd46b9c96c3471da2a75487a8fdc2dc.tar.gz |
Fix 64-bit clearsilver shared library issue
Change-Id: Ia5524362f038e0f08fd7d24e6ffe4a60f640cb30
Diffstat (limited to 'util')
-rw-r--r-- | util/Android.mk | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/util/Android.mk b/util/Android.mk index 02a78d7..e4e5e84 100644 --- a/util/Android.mk +++ b/util/Android.mk @@ -17,15 +17,14 @@ LOCAL_SRC_FILES:= \ 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_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:= |