summaryrefslogtreecommitdiffstats
path: root/opengl/libagl
diff options
context:
space:
mode:
authorMagnus Landqvist <magnus.landqvist@sonyericsson.com>2010-02-19 12:06:59 +0100
committerJohan Redestig <johan.redestig@sonyericsson.com>2010-02-19 12:06:59 +0100
commitd08583b05c47e676a5e9a9f4ae58594d75141e62 (patch)
tree90213dcf69a9082815e80919891d740fa4c32e57 /opengl/libagl
parent54ab0ee5b33233d5d4f752742f4fa6a087620959 (diff)
downloadframeworks_native-d08583b05c47e676a5e9a9f4ae58594d75141e62.zip
frameworks_native-d08583b05c47e676a5e9a9f4ae58594d75141e62.tar.gz
frameworks_native-d08583b05c47e676a5e9a9f4ae58594d75141e62.tar.bz2
Build software AGL library with correct get_tls() macro for ARMv7 based platforms
This prevents crashes on snapdragon processors.
Diffstat (limited to 'opengl/libagl')
-rw-r--r--opengl/libagl/Android.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/opengl/libagl/Android.mk b/opengl/libagl/Android.mk
index 9837845..518be8b 100644
--- a/opengl/libagl/Android.mk
+++ b/opengl/libagl/Android.mk
@@ -37,6 +37,10 @@ ifeq ($(TARGET_ARCH),arm)
LOCAL_CFLAGS += -fstrict-aliasing
endif
+ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true)
+ LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER
+endif
+
ifneq ($(TARGET_SIMULATOR),true)
# we need to access the private Bionic header <bionic_tls.h>
LOCAL_C_INCLUDES += bionic/libc/private