From 02f93e43844f75cd5d2e78b048c876412de00ef8 Mon Sep 17 00:00:00 2001 From: Matthew Maurer Date: Wed, 27 Apr 2022 11:10:34 -0700 Subject: 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 --- Android.bp | 1 + 1 file changed, 1 insertion(+) 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", -- cgit v1.2.3