diff options
author | Elliott Hughes <enh@google.com> | 2021-08-13 09:38:23 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2021-08-13 09:39:22 -0700 |
commit | a79df4f165b3b1564f9c404224eda5ce9d0df992 (patch) | |
tree | 589d4fc48891ceb0962aa003c5c453c1d4c2d47d | |
parent | 0f52642b9d59a6def629b8bc7eed96f28c2e0c5f (diff) | |
download | bc-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.bp | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 { |