Sam James bb2d045c02 toolchain.eclass: rework bootstrapping logic
* Build stage1 compiler with user's CFLAGS. This consistently ends up
  saving at least 15 minutes for me on a fast amd64 machine and should save
  more on slower machines and architectures.

  There's only any risk here if the host compiler is ancient/very buggy and
  even then, you get a failed bootstrap later on. The GCC developers, per the
  linked bug, end up using STAGE1_CFLAGS="-O2" anyway to speed up the process
  so it's not like this is untested at all.

  mattst88 actually brought this up.. 10 years ago (bug #477548). Let's try
  make that right now.

* Respect LDFLAGS for target libraries for native builds. Not touching this
  for cross builds, at least for now, as it's a bit more delicate.

  (Unfortunately, we have to put a hack in here for now until we can fix
  multilib.eclass - see bug #914881).

Bug: https://gcc.gnu.org/PR111619
Bug: https://bugs.gentoo.org/914881
Closes: https://bugs.gentoo.org/477548
Closes: https://bugs.gentoo.org/831423
Closes: https://bugs.gentoo.org/840392
Apologies-to: Matt Turner <mattst88@gentoo.org>
Signed-off-by: Sam James <sam@gentoo.org>
2023-09-30 10:38:40 +01:00
2023-09-27 15:22:53 +02:00
2023-09-29 13:03:34 +03:00
2023-09-25 10:07:38 +03:00
2023-09-25 07:32:41 +02:00
2023-09-24 05:43:42 +01:00
2023-09-28 22:29:35 +09:00
2023-09-27 22:46:49 +09:00
2023-09-29 19:28:00 -04:00
2023-09-26 13:25:28 +00:00
2023-09-28 15:29:11 -05:00
2023-09-11 01:53:40 +01:00
2023-09-30 09:19:34 +02:00
2023-09-06 05:20:19 +00:00
2023-09-23 07:47:23 -04:00
2023-09-26 03:58:13 +01:00
2023-09-26 20:03:56 +02:00
2023-09-29 16:04:12 +03:00
2023-09-30 07:30:31 +03:00
2023-09-27 03:38:42 +01:00
2023-09-30 02:51:11 +01:00
2023-09-29 11:07:03 +01:00
2023-09-16 10:10:08 -04:00
2023-09-23 10:36:26 +01:00
2023-09-22 11:31:02 +03:00
2023-09-26 00:02:19 +01:00
2023-09-29 12:40:24 +02:00
2023-09-29 11:32:38 +01:00
2023-09-23 02:52:41 +02:00
2023-09-30 06:56:20 +02:00
2023-09-30 11:22:46 +02:00
2023-09-19 17:09:28 -04:00
2023-09-29 14:39:48 +02:00
S
Description
No description provided
9.8 GiB
Languages
Shell 98%
Roff 1.3%
Emacs Lisp 0.2%
C 0.1%