Files
guix-mirror/gnu/packages/patches/simple-cc-path-max.patch
Sören Tempel 2c343b8136 gnu: Add simple-cc.
* gnu/packages/c.scm (simple-cc): New variable.
* gnu/packages/patches/simple-cc-path-max.patch: New patch.
* gnu/packages/patches/simple-cc-qbebin.patch: New patch.
* gnu/packages/patches/simple-cc-wcsrtombs.patch: New patch.
* gnu/packages/patches/simple-cc-noexec-stack.patch: New patch.
* gnu/local.mk: (dist_patch_DATA): Register patches.

Change-Id: Ia72acc15c646ef2dc20afc86077ca1057b718370
2026-06-07 21:16:55 +02:00

18 lines
438 B
Diff

Allow binary names of PATH_MAX length
Required for Guix as otherwise our store paths don't fit here.
diff --git a/src/cmd/scc-cc/posix/cc.c b/src/cmd/scc-cc/posix/cc.c
index 2758d006..319d4b2f 100644
--- a/src/cmd/scc-cc/posix/cc.c
+++ b/src/cmd/scc-cc/posix/cc.c
@@ -43,7 +43,7 @@ enum {
static struct tool {
char cmd[PATH_MAX];
- char bin[32];
+ char bin[PATH_MAX];
char *outfile;
struct items args;
int in, out;