commit | dc9c8f22c427c2110a7225e6290d86d25fd58415 | [log] [tgz] |
---|---|---|
author | WenHan Gu <Wenhan.gu@mediatek.com> | Fri May 24 16:21:57 2013 +0800 |
committer | Andrew Hsieh <andrewhsieh@google.com> | Thu Oct 16 18:31:01 2014 +0800 |
tree | 9aff377b290b3fa712b2ebde465a27da152fd333 | |
parent | 8c98d76361a09a3862c36dd32b9d13b4028eed1a [diff] |
Shrink binary size when cross-compiling. Add these flags in cross-compiling mode: CFLAGS="-Os -ffunction-sections -fdata-sections -fvisibility=hidden" CXXFLAGS="-Os -ffunction-sections -fdata-sections -fvisibility=hidden" LDFLAGS="-Wl,--gc-sections" Change-Id: I63e2df17711e669f828cd6008f4dc851690ab1dd Signed-off-by: WenHan Gu <Wenhan.gu@mediatek.com>