mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
binutils, gcc: readd GOLD support, currently disabled
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
8d2428e077
commit
32780806a3
@ -169,6 +169,11 @@ strip_linker_plugin() {
|
|||||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-linker-plugin||g"`
|
LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-linker-plugin||g"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
strip_gold() {
|
||||||
|
# strip out usage from GOLD linker
|
||||||
|
LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-ld=gold||g"`
|
||||||
|
}
|
||||||
|
|
||||||
fix_module_depends() {
|
fix_module_depends() {
|
||||||
# modify .modinfo section in kernel module to depends on other required modules
|
# modify .modinfo section in kernel module to depends on other required modules
|
||||||
local MODULE="$1"
|
local MODULE="$1"
|
||||||
@ -247,6 +252,7 @@ show_config() {
|
|||||||
config_message="$config_message\n - SIMD support:\t\t\t $SIMD_SUPPORT"
|
config_message="$config_message\n - SIMD support:\t\t\t $SIMD_SUPPORT"
|
||||||
config_message="$config_message\n - Optimizations:\t\t\t $OPTIMIZATIONS"
|
config_message="$config_message\n - Optimizations:\t\t\t $OPTIMIZATIONS"
|
||||||
config_message="$config_message\n - LTO (Link Time Optimization) support: $LTO_SUPPORT"
|
config_message="$config_message\n - LTO (Link Time Optimization) support: $LTO_SUPPORT"
|
||||||
|
config_message="$config_message\n - GOLD (Google Linker) Support:\t $GOLD_SUPPORT"
|
||||||
config_message="$config_message\n - LLVM support:\t\t\t $LLVM_SUPPORT"
|
config_message="$config_message\n - LLVM support:\t\t\t $LLVM_SUPPORT"
|
||||||
|
|
||||||
# config_message="$config_message\n - CFLAGS:\t $TARGET_CFLAGS"
|
# config_message="$config_message\n - CFLAGS:\t $TARGET_CFLAGS"
|
||||||
|
@ -29,6 +29,10 @@ if [ "$LTO_SUPPORT" = yes ];then
|
|||||||
LD_OPTIM="$LD_OPTIM -flto"
|
LD_OPTIM="$LD_OPTIM -flto"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$GOLD_SUPPORT" = yes ];then
|
||||||
|
LD_OPTIM="$LD_OPTIM -fuse-ld=gold"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$DEBUG" = yes ]; then
|
if [ "$DEBUG" = yes ]; then
|
||||||
TARGET_CFLAGS="$TARGET_CFLAGS -ggdb"
|
TARGET_CFLAGS="$TARGET_CFLAGS -ggdb"
|
||||||
TARGET_CXXFLAGS="$TARGET_CXXFLAGS -ggdb"
|
TARGET_CXXFLAGS="$TARGET_CXXFLAGS -ggdb"
|
||||||
|
@ -57,8 +57,8 @@ mkdir -p objdir && cd objdir
|
|||||||
--enable-version-specific-runtime-libs \
|
--enable-version-specific-runtime-libs \
|
||||||
$WITH_64B_BFD \
|
$WITH_64B_BFD \
|
||||||
--enable-plugins \
|
--enable-plugins \
|
||||||
--disable-gold \
|
--enable-gold \
|
||||||
--enable-ld \
|
--enable-ld=default \
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
--disable-nls
|
--disable-nls
|
||||||
|
|
||||||
|
@ -25,6 +25,9 @@
|
|||||||
# Fails to compile with GCC's link time optimization.
|
# Fails to compile with GCC's link time optimization.
|
||||||
strip_lto
|
strip_lto
|
||||||
|
|
||||||
|
# eglibc dont support GOLD linker.
|
||||||
|
strip_gold
|
||||||
|
|
||||||
# Filter out some problematic *FLAGS
|
# Filter out some problematic *FLAGS
|
||||||
CFLAGS=`echo $CFLAGS | sed -e "s|-ffast-math||g"`
|
CFLAGS=`echo $CFLAGS | sed -e "s|-ffast-math||g"`
|
||||||
CFLAGS=`echo $CFLAGS | sed -e "s|-Ofast|-O2|g"`
|
CFLAGS=`echo $CFLAGS | sed -e "s|-Ofast|-O2|g"`
|
||||||
|
@ -48,8 +48,8 @@ mkdir -p objdir-$1 && cd objdir-$1
|
|||||||
--disable-__cxa_atexit \
|
--disable-__cxa_atexit \
|
||||||
--disable-libada \
|
--disable-libada \
|
||||||
--disable-libmudflap \
|
--disable-libmudflap \
|
||||||
--disable-gold \
|
--enable-gold \
|
||||||
--enable-ld \
|
--enable-ld=default \
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
--disable-libquadmath \
|
--disable-libquadmath \
|
||||||
|
@ -48,8 +48,8 @@ mkdir -p objdir-$1 && cd objdir-$1
|
|||||||
--disable-libmudflap \
|
--disable-libmudflap \
|
||||||
--disable-libssp \
|
--disable-libssp \
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
--disable-gold \
|
--enable-gold \
|
||||||
--enable-ld \
|
--enable-ld=default \
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
--disable-libquadmath \
|
--disable-libquadmath \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user