From e94183b461cb0546760321b7fc6d8912fbfc18a9 Mon Sep 17 00:00:00 2001 From: lotherk Date: Sat, 14 Nov 2026 07:08:07 +0000 Subject: [PATCH] mcde: lineToData is built for the host too It is a noinst build tool that Term/Makefile.am runs while building ('.../util/lineToData: not found', build/logs/userland-2026-11-14m.log:10978). Use the same *_FOR_BUILD override as util/tradcpp; automake does not honour a per-target CC. Part of the build-tool fixes for tasksd t0170. Co-authored-by: Iceman Contributor Free --- lib/DtTerm/util/Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/DtTerm/util/Makefile.am b/lib/DtTerm/util/Makefile.am index 26ae7e11..5b95c66a 100644 --- a/lib/DtTerm/util/Makefile.am +++ b/lib/DtTerm/util/Makefile.am @@ -2,6 +2,15 @@ MAINTAINERCLEANFILES = Makefile.in noinst_PROGRAMS = lineToData +# lineToData is a build tool: Term/Makefile.am runs it while building and it +# must therefore run on the build host, not on the target. automake has no +# per-target CC override, so replace the generated variables for this sub-make; +# the top Makefile.am forwards the *_FOR_BUILD values (same as util/tradcpp). +CC = $(CC_FOR_BUILD) +CPPFLAGS = $(CPPFLAGS_FOR_BUILD) +CFLAGS = $(CFLAGS_FOR_BUILD) +LDFLAGS = $(LDFLAGS_FOR_BUILD) + lineToData_CFLAGS = -I../TermPrim lineToData_SOURCES = lineToData.c