- update link time optimization hack
- use -O3 for optimization
- disable -fno-stack-protector optimization
This commit is contained in:
Stephan Raue 2010-06-13 22:55:05 +02:00
parent f8d79a97d0
commit 53fa993218

View File

@ -7,7 +7,7 @@ $SCRIPTS/install gcc-core
# Fails to compile with GCC's link time optimization.
CFLAGS=`echo $CFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"`
LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"`
LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"`
# Fails to compile using the gold linker.
CFLAGS=`echo $CFLAGS | sed -e "s|-fuse-linker-plugin||" -e "s|-fuse-ld=gold||"`
@ -16,9 +16,10 @@ $SCRIPTS/install gcc-core
# Filter out some problematic CFLAGS
CFLAGS=`echo $CFLAGS | sed -e "s|-D_FILE_OFFSET_BITS=64||" -e "s|-D_LARGEFILE_SOURCE||"`
CFLAGS=`echo $CFLAGS | sed -e "s|-ffast-math||"`
CFLAGS=`echo $CFLAGS | sed -e "s|-Os|-O3|"`
# set some CFLAGS we need
CFLAGS="$CFLAGS -fno-stack-protector"
# CFLAGS="$CFLAGS -fno-stack-protector"
# dont do an parallel build
MAKEFLAGS=-j1