commit | adf54b84ebcce593a3750d7481eb77ab35d4c857 | [log] [tgz] |
---|---|---|
author | Rahul Chaudhry <rahulchaudhry@google.com> | Wed Sep 13 14:29:37 2017 -0700 |
committer | Rahul Chaudhry <rahulchaudhry@google.com> | Wed Sep 13 14:35:55 2017 -0700 |
tree | 59572a71bf84c1e7b0b82abdbcd6f67c79474bef | |
parent | e97411a56d7ab5fc1e8317f3ff1f9e9350e7b7c8 [diff] |
as, ld, nm: disable sbrk() calls on Darwin. sbrk() is declared as deprecated in "/usr/include/unistd.h" on Darwin. This causes build errors when building binutils. Configure detects that sbrk() is present and defines HAVE_SBRK, but the compiler sees __deprecated attribute on the declaration and errors out. Bug: 37683243 Test: binutils-2.27 builds successfully on Darwin. Change-Id: I5baad79e19f49c5ea8f657173070382f8504dbd1