Commit dc9c8f22 authored by WenHan Gu's avatar WenHan Gu Committed by Andrew Hsieh
Browse files

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: default avatarWenHan Gu <Wenhan.gu@mediatek.com>
parent 8c98d763
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment