mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
eglibc: filter out some problematic LDFLAGS too
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user