mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +00:00
eglibc:
- remove unneeded optimizations - disable LTO optimization - build with -O3 optimization
This commit is contained in:
parent
636df0e358
commit
6c4f1b574f
@ -7,12 +7,10 @@ $SCRIPTS/install gcc-core
|
||||
export BUILD_CC=$HOST_CC
|
||||
export OBJDUMP_FOR_HOST=objdump
|
||||
|
||||
if [ "$TARGET_ARCH" = i386 ]; then
|
||||
CFLAGS="-march=$(echo $TARGET_NAME | cut -d- -f 1) -mtune=generic"
|
||||
else
|
||||
CFLAGS="-mtune=generic"
|
||||
fi
|
||||
CFLAGS="$CFLAGS -g -O2 -fno-stack-protector"
|
||||
CFLAGS="-O3 -fno-stack-protector"
|
||||
|
||||
# eglibc fails to compile with GCC 4.5.0's link time optimization.
|
||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"`
|
||||
|
||||
if [ "$DEBUG" = yes ]; then
|
||||
DEBUG_CONFIG="--enable-debug"
|
||||
|
@ -9,6 +9,10 @@ if [ "$2" = toolchain ]; then
|
||||
$SCRIPTS/install linux-headers
|
||||
|
||||
cd $PKG_BUILD/objdir-$1
|
||||
|
||||
# eglibc fails to compile with GCC 4.5.0's link time optimization.
|
||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||" -e "s|-fwhole-program||"`
|
||||
|
||||
cat >configparms <<EOF
|
||||
install_root=$SYSROOT_PREFIX
|
||||
EOF
|
||||
|
Loading…
x
Reference in New Issue
Block a user