From 5e2f4c36629ede58c3bb42111fdb3355c1317bcd Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Sat, 18 May 2024 04:09:39 -0300 Subject: build: define CC/GAWK if undefined Just in case the value is not defined in config.mk and `make` is first executed from another directory (such as in src/man) instead of the root directory. This amends commit 93d623fdf ("build: allow overriding certain tools", 2024-02-23) / PR #6222. --- src/so.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/so.mk') diff --git a/src/so.mk b/src/so.mk index ac76ffc30..cb1f08b08 100644 --- a/src/so.mk +++ b/src/so.mk @@ -5,6 +5,8 @@ # The includer should probably define SO and TARGET and may also want to define # EXTRA_OBJS and extend CLEANFILES. +CC ?= cc + HDRS := SRCS := $(sort $(wildcard $(MOD_DIR)/*.c)) OBJS := $(SRCS:.c=.o) -- cgit v1.2.3-70-g09d2