all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#64929] [PATCH] gnu: gcc-toolchain: Create a 'bin/cc' symlink.
@ 2023-07-29 11:50 Attila Lendvai
  2023-08-21 13:40 ` Maxime Devos
  2024-02-28 20:59 ` John Kehayias via Guix-patches via
  0 siblings, 2 replies; 5+ messages in thread
From: Attila Lendvai @ 2023-07-29 11:50 UTC (permalink / raw)
  To: 64929; +Cc: Attila Lendvai

There are many projects that don't have a configure script that finds gcc.

Also makes it more symmetric with the clang-toolchain, that also does this.

* gnu/packages/commencement.scm (make-gcc-toolchain): Create the symlink.
---

i'm not sure what was the conclusion about this. clang-toolchain does
create a cc symlink, so i have mirrored what clang-toolchain does into
gcc-toolchain.

i thought i'll send this patch lying in my kludges branch, and
offer it either for rejection or inclusion, as you see fit.

 gnu/packages/commencement.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index fe6f025257..fceda97ad5 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -3554,6 +3554,12 @@ (define* (make-gcc-toolchain gcc
                                                   ((_ . directory) directory))
                                                 %build-inputs))
 
+                       ;; Create 'cc' so that one can use it as a drop-in
+                       ;; replacement for the default tool chain and have
+                       ;; configure scripts find the compiler.  Note that
+                       ;; 'c++' is already present, no need to symlink it.
+                       (symlink "gcc" (string-append out "/bin/cc"))
+
                        (union-build (assoc-ref %outputs "debug")
                                     (list (assoc-ref %build-inputs
                                                      "libc-debug")))

base-commit: e43cbeafd1b632f39b08b3644af5230d5350a656
prerequisite-patch-id: 6793c8ad24215c5f14ce71a4741fff5f6ccd7eeb
prerequisite-patch-id: 3a8dd737d11f37987641af9bc7f512a0bb1a1591
-- 
2.40.1





^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-02-28 21:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-29 11:50 [bug#64929] [PATCH] gnu: gcc-toolchain: Create a 'bin/cc' symlink Attila Lendvai
2023-08-21 13:40 ` Maxime Devos
2023-08-21 14:30   ` Attila Lendvai
2023-08-21 15:08     ` Maxime Devos
2024-02-28 20:59 ` John Kehayias via Guix-patches via

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.