From: Justin Chen <justinpopo6@gmail.com>
To: crossgcc@sourceware.org
Subject: LTO Depends-on Non-static Toolchain
Date: Thu, 12 Oct 2017 20:09:00 -0000 [thread overview]
Message-ID: <CAJx26kUCykwJug9v5YiP9TtFX3rWq+KgYmG5vU9Mvpi0oHnD_Q@mail.gmail.com> (raw)
Hello,
What is the reason behind having LTO require a non-static toolchain?
Is this a work around for some bug within binutils/gcc? Or is this
something that should not work in theory?
commit 45512b003d04b5a89c5c3bb6b674683d82b87f42
Author: Alexey Neyman <stilor@att.net>
Date: Sat Feb 18 19:00:25 2017 -0800
Have LTO depend-on non-static builds
Loading a dynamic library (LTO plugin) from a static binary fails
on ArchLinux. It is also prone to break if a system is ever upgraded.
Also, disable plugins if not enabled explicitly.
Signed-off-by: Alexey Neyman <stilor@att.net>
diff --git a/config/cc/gcc.in.2 b/config/cc/gcc.in.2
index 8818de6..638bfe9 100644
--- a/config/cc/gcc.in.2
+++ b/config/cc/gcc.in.2
@@ -124,6 +124,7 @@ config CC_GCC_USE_GRAPHITE
config CC_GCC_USE_LTO
bool "Enable LTO"
default y
+ depends on ! STATIC_TOOLCHAIN
help
Enable the Link Time Optimisations.
Thanks,
Justin
reply other threads:[~2017-10-12 20:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJx26kUCykwJug9v5YiP9TtFX3rWq+KgYmG5vU9Mvpi0oHnD_Q@mail.gmail.com \
--to=justinpopo6@gmail.com \
--cc=crossgcc@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).