summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/cc/gcc.sh11
1 files changed, 4 insertions, 7 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index b00d113..c0a8774 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -481,13 +481,10 @@ do_cc() {
"") extra_config+=("--without-long-double-128");;
esac
- # If LTO is selected and binutils has gold, then enable
- # building the lto plugin with the --enable-gold option,
- # but only if gold has support for plugins.
- if [ "${CT_BINUTILS_GOLD_INSTALLED}" = "y" \
- -a "${CT_BINUTILS_GOLD_PLUGINS}" = "y" \
- -a "${CT_CC_GCC_USE_LTO}" = "y" \
- ]; then
+ if [ "${CT_CC_GCC_ENABLE_PLUGINS}" = "y" ]; then
+ extra_config+=( --enable-plugin )
+ fi
+ if [ "${CT_CC_GCC_GOLD}" = "y" ]; then
extra_config+=( --enable-gold )
fi