[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#64929] [PATCH] gnu: gcc-toolchain: Create a 'bin/cc' symlink.
From: |
Attila Lendvai |
Subject: |
[bug#64929] [PATCH] gnu: gcc-toolchain: Create a 'bin/cc' symlink. |
Date: |
Sat, 29 Jul 2023 13:50:29 +0200 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug#64929] [PATCH] gnu: gcc-toolchain: Create a 'bin/cc' symlink.,
Attila Lendvai <=