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 <noreply@opencode.ai>
This commit is contained in:
1 parent
6b78021465
commit
e94183b461
1 file changed
+9
@@ -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
|
||||
Reference in new issue
Block a user