This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
# HG changeset patch # User "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> # Date 1293641915 -3600 # Node ID 399843f2fc886c6015bec5e0d3efcba0e555fb6a # Parent f55ffa24e6be5a7f23f7794d9fbfcb77d8d07570 cc/gcc: build lto-plugin if binutils' gold is built To properly enable LTO with gold, gcc has to install a plugin that gold uses to handle the LTO information. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -481,6 +481,16 @@ "") 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 + extra_config+=( --enable-gold ) + fi + CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'" # --enable-symvers=gnu really only needed for sh4 to work around a -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |