aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2011-10-21 22:18:13 +0159
committerBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2011-10-21 22:18:13 +0159
commitad8701bac4832944bc41e1915a5727ca8d9339c5 (patch)
treebdd91a3cc49cfe92a4e406cb92f6c3b24ed78bd8
parent1469e95cb6b92dd55aae5f520f5d91a789384b45 (diff)
downloadfreetype-linaro_android_2.3.5.tar.gz
freetype: Fix font corruptionlinaro_android_2.3.7linaro_android_2.3.5
Font corruption turns out to be triggered by the -fmodulo-sched compiler flag. Turning that optimization off until the compiler is fixed. Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r--Android.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 0d8d5bd0e..f977c0777 100644
--- a/Android.mk
+++ b/Android.mk
@@ -57,6 +57,9 @@ endif
ifeq ($(findstring -O, $(TARGET_GLOBAL_CFLAGS)),)
LOCAL_CFLAGS += -O2
endif
+# Workaround for toolchain bug (4.6-2011.10): -fmodulo-sched in
+# freetype causes fonts to be garbled
+LOCAL_CFLAGS += $(call cc-option,-fno-modulo-sched)
LOCAL_MODULE:= libft2