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