scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit b8738f479a2f542a5e9f76fd981e0914b607286b
parent fbb0eced4666b93e451961c3f264f6430d9308e0
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 18 Oct 2024 11:34:40 +0200

build/netbsd: Switch to gnu toolchain by default

When using the unix toolchain we don't have a way to exclude
the default include and library search, and in the case of NetBSD
it was taking the system headers when compiling the libc,
creating a recursive call to calloc inside calloc
(as it seems that malloc is implemented as a macro
using calloc).

Diffstat:
Mscripts/config | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/config b/scripts/config @@ -6,7 +6,7 @@ OpenBSD) ;; NetBSD) #TODO: send a patch to NetBSD to solve this problem - echo HOST=bsd ARFLAGS="${ARFLAGS:--rv}" + echo TOOL=${TOOL:-gnu} HOST=bsd ARFLAGS="${ARFLAGS:--rv}" ;; FreeBSD) echo TOOL=${TOOL:-clang} HOST=bsd