aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2021-08-13 18:33:34 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-08-13 18:33:34 +0000
commitf38a1f3476a61c6d86655f915de27f7a9e722e0d (patch)
tree589d4fc48891ceb0962aa003c5c453c1d4c2d47d
parentf86a9b87c1e3835f78619112bb0af462d9073bf9 (diff)
parenteb5ee5f1d6e0c76265fcd619f18421983a75ee3e (diff)
downloadbc-f38a1f3476a61c6d86655f915de27f7a9e722e0d.tar.gz
Fix a conflict between the bc source and Apple's fortify implementation. am: a79df4f165 am: 33bd87ce3f am: eb5ee5f1d6
Original change: https://android-review.googlesource.com/c/platform/external/bc/+/1795887 Change-Id: I90098681f4bf4dc1b8872bf88abf27bc9223a3a4
-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 {