From a79df4f165b3b1564f9c404224eda5ce9d0df992 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 13 Aug 2021 09:38:23 -0700 Subject: Fix a conflict between the bc source and Apple's fortify implementation. Reported upstream, and will remove this when we agree on the real fix. (Note that we already don't have fortify for glibc or musl, so this isn't as bad a step backwards as it seems, and at least this one should be easily and quickly rectified. If this makes you sad, it's Linux you should be worried about...) Bug: https://github.com/gavinhoward/bc/issues/35 Test: postsubmit :-( Change-Id: I73b7b4bf874ec5b7cea9f8a07a8c5ad4edb2f71e --- Android.bp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Android.bp b/Android.bp index 7160fee1..0272c848 100644 --- a/Android.bp +++ b/Android.bp @@ -39,6 +39,12 @@ cc_defaults { ":bc-lib.c", ], stl: "none", + target: { + darwin: { + // TODO: temporary workaround for https://github.com/gavinhoward/bc/issues/35 + cflags: ["-D_FORTIFY_SOURCE=0"], + }, + }, } genrule { -- cgit v1.2.3