mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
eglibc: pass -O2 if build with size optimization
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
@@ -14,7 +14,7 @@ $SCRIPTS/build gcc-core
|
||||
|
||||
# Filter out some problematic CFLAGS
|
||||
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
|
||||
CFLAGS="$CFLAGS -g -fno-stack-protector"
|
||||
|
||||
Reference in New Issue
Block a user