aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2011-12-08 17:34:26 +0059
committerBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>2013-11-01 04:39:20 +0100
commit7285762ec29e36ffde608e1fb026b7ef927ec9b8 (patch)
tree39b39889f1c33216d481f7bb753dc16b383d6c00
parentbb8428f762b3632f493572c4f73957e1281ade79 (diff)
downloadopenssl-linaro_android_4.4.tar.gz
openssl: Build with -fno-strict-aliasinglinaro_android_4.4.3linaro_android_4.4.2linaro_android_4.4
OpenSSL contains numerous aliasing violations, in places that are hard to fix without breaking API and ABI. Disable the optimization locally so we can build other parts of the tree with strict-aliasing Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r--android-config.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/android-config.mk b/android-config.mk
index d1bda998cf..bd4ed7b090 100644
--- a/android-config.mk
+++ b/android-config.mk
@@ -23,6 +23,10 @@ LOCAL_CFLAGS += \
# Intentionally excluded http://b/7079965
LOCAL_CFLAGS := $(filter-out -DZLIB, $(LOCAL_CFLAGS))
+# OpenSSL isn't ready to be built with strict aliasing, and fixing it without
+# breaking both API and ABI is hard
+LOCAL_CFLAGS += -fno-strict-aliasing
+
# Debug
# LOCAL_CFLAGS += -DCIPHER_DEBUG