diff options
author | Matthew Maurer <mmaurer@google.com> | 2022-04-27 11:10:34 -0700 |
---|---|---|
committer | Matthew Maurer <mmaurer@google.com> | 2022-04-27 11:10:34 -0700 |
commit | 02f93e43844f75cd5d2e78b048c876412de00ef8 (patch) | |
tree | c04bdbe93b91372a8832b2616cc46a3f2b5f48b8 | |
parent | 0d2df43535400c6b721d0a95398ac9c2ac8a1afb (diff) | |
download | iputils-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.bp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -33,6 +33,7 @@ license { cc_defaults { name: "iputils_defaults", cflags: [ + "-fno-strict-aliasing", "-D_GNU_SOURCE", "-Wall", "-Werror", |