eglibc: pass -O2 if build with size optimization

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-10-25 20:45:31 +02:00
parent 1801678c23
commit 196050fb08

View File

@ -14,7 +14,7 @@ $SCRIPTS/build gcc-core
# Filter out some problematic CFLAGS # Filter out some problematic CFLAGS
CFLAGS=`echo $CFLAGS | sed -e "s|-ffast-math||"` CFLAGS=`echo $CFLAGS | sed -e "s|-ffast-math||"`
CFLAGS=`echo $CFLAGS | sed -e "s|-Os|-O3|"` CFLAGS=`echo $CFLAGS | sed -e "s|-Os|-O2|"`
# set some CFLAGS we need # set some CFLAGS we need
CFLAGS="$CFLAGS -g -fno-stack-protector" CFLAGS="$CFLAGS -g -fno-stack-protector"