commit a4e5aceb7b07d0a5e0b2d80e674a84515ed56318
parent f28394385a32f7729620977bf5c3f09cec07f6de
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 16 Oct 2024 11:12:27 +0200
tests/libc: Select path to gcc-scc
The Makefile was using gcc-scc expecting it to be in the PATH, but
the correct soluction is to select the tool from the bin directory.
Also, gcc-scc was using gcc, that it is not shipped anymore with
OpenBSD, and in this context we can assume that the system compiler
is cc.
Diffstat:
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/libc/gcc-scc.sh b/src/libc/gcc-scc.sh
@@ -43,7 +43,7 @@ sys_arch_inc=$inc/bits/$sys/$abi
 lib=$root/lib/scc/${abi}-${sys}
 crt=$root/lib/scc/${abi}-${sys}/crt.o
 obj=${1%.c}.o
-cc=${CROSS_COMPILE}gcc
+cc=${CROSS_COMPILE}cc
 ld=${CROSS_COMPILE}ld
 
 case `uname` in
diff --git a/tests/libc/execute/Makefile b/tests/libc/execute/Makefile
@@ -1,6 +1,9 @@
 .POSIX:
 
-CC     = gcc-scc
+ROOT=../../..
+SCCPREFIX=$(ROOT)
+CC=$(ROOT)/bin/gcc-scc
+CFLAGS=
 
 .c:
 	$(CC) $(CFLAGS) -o $@ $<