openssl: Build with -fno-strict-aliasing
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>
diff --git a/android-config.mk b/android-config.mk
index 80955b5..29a3007 100644
--- a/android-config.mk
+++ b/android-config.mk
@@ -23,5 +23,9 @@
# 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