commit | 0c87f3d733f289978dd2fa6fd4df324a52f0a4f4 | [log] [tgz] |
---|---|---|
author | Andrew Hsieh <andrewhsieh@google.com> | Thu May 29 02:47:27 2014 -0700 |
committer | Andrew Hsieh <andrewhsieh@google.com> | Fri May 30 10:39:24 2014 -0700 |
tree | a78967b238ecb15a08576aefabd33a134cb654f8 | |
parent | b541ab6c51734530ed615e307f8912f32e616967 [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