eglibc: filter out some problematic LDFLAGS too

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-07-11 03:15:54 +02:00
parent 8790197a40
commit 22b9f920d4

View File

@ -25,11 +25,15 @@
strip_lto # Fails to compile with GCC's link time optimization.
strip_gold # Fails to compile using the gold linker.
# Filter out some problematic CFLAGS
# Filter out some problematic *FLAGS
CFLAGS=`echo $CFLAGS | sed -e "s|-ffast-math||"`
CFLAGS=`echo $CFLAGS | sed -e "s|-Ofast|-O2|"`
CFLAGS=`echo $CFLAGS | sed -e "s|-O.|-O2|"`
LDFLAGS=`echo $LDFLAGS | sed -e "s|-ffast-math||"`
LDFLAGS=`echo $LDFLAGS | sed -e "s|-Ofast|-O2|"`
LDFLAGS=`echo $LDFLAGS | sed -e "s|-O.|-O2|"`
# set some CFLAGS we need
CFLAGS="$CFLAGS -g -fno-stack-protector"