aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Maurer <mmaurer@google.com>2022-04-27 11:10:34 -0700
committerMatthew Maurer <mmaurer@google.com>2022-04-27 11:10:34 -0700
commit02f93e43844f75cd5d2e78b048c876412de00ef8 (patch)
treec04bdbe93b91372a8832b2616cc46a3f2b5f48b8
parent0d2df43535400c6b721d0a95398ac9c2ac8a1afb (diff)
downloadiputils-02f93e43844f75cd5d2e78b048c876412de00ef8.tar.gz
Explicitly set `-fno-strict-aliasing`
iputils' own build system automatically adds `-fno-strict-aliasing` to its compile flags. Android currently adds `-fstrict-aliasing` to arm32 builds by default. To ensure no miscompilations on arm32, explicitly set `-fno-strict-aliasing` for the iputils module. Bug: 230627866 Test: mm Change-Id: I6cee88b61db738660806662b459ebeb11d0bb429
-rw-r--r--Android.bp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index bfc47ce..4f31f99 100644
--- a/Android.bp
+++ b/Android.bp
@@ -33,6 +33,7 @@ license {
cc_defaults {
name: "iputils_defaults",
cflags: [
+ "-fno-strict-aliasing",
"-D_GNU_SOURCE",
"-Wall",
"-Werror",