commit | 4c952d72b7aca4801e0ee4070cf54e3de57b98b5 | [log] [tgz] |
---|---|---|
author | Andrew Hsieh <andrewhsieh@google.com> | Thu May 29 02:47:27 2014 -0700 |
committer | Andrew Hsieh <andrewhsieh@google.com> | Thu May 29 11:40:46 2014 -0700 |
tree | 6747bd319878117907653d36c34af69aab51bac8 | |
parent | b3bed5952b44e69dc9e1988beb4092303084ef61 [diff] |
Add -latomic to all target builds Projects using stdatomic.h needs libatomic.a in case compiler can't expand all __atomic* intrinsics. eg, __atomic_is_lock_free in armeabi/mips. Adding libatomic.a globally makes more sense than adding "LOCAL_LDLIB += -latomic " in each project including <stdatomic.h>. Projects don't need atomic operations won't get redundant DT_NEEDED entry because libatomic.a is not a shared library. Change-Id: I81dbf524544c848e667e18ab5eeabff75b5063ef