aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2021-08-13 09:38:23 -0700
committerElliott Hughes <enh@google.com>2021-08-13 09:39:22 -0700
commita79df4f165b3b1564f9c404224eda5ce9d0df992 (patch)
tree589d4fc48891ceb0962aa003c5c453c1d4c2d47d
parent0f52642b9d59a6def629b8bc7eed96f28c2e0c5f (diff)
downloadbc-a79df4f165b3b1564f9c404224eda5ce9d0df992.tar.gz
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
-rw-r--r--Android.bp6
1 files changed, 6 insertions, 0 deletions
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 {