From 301c85757f597325a052ded99ae02b0b44d71d53 Mon Sep 17 00:00:00 2001 From: Fred Wright <fw@fwright.net> Date: Wed, 6 Nov 2024 21:44:50 -0800 Subject: [PATCH] Makefile: Include ARCHFLAGS for xtests/mantests. The rework of the Makefile recipes dropped this, which impacts those test builds for non-default architectures. TESTED: ARCHFLAGS is now honored as intended. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d26e79e..65a9ea2 100644 --- a/Makefile +++ b/Makefile @@ -365,7 +365,7 @@ $(TESTSPRGS_C): %_static: %.o $(BUILDSLIBPATH) # The "darwin_c" tests need the -fno-builtin option with some compilers. $(XTESTOBJS_C): %.o: %.c $(ALLHEADERS) - $(CC) -c -std=c99 -fno-builtin -I$(SRCINCDIR) $(CFLAGS) $< -o $@ + $(CC) -c -std=c99 -fno-builtin -I$(SRCINCDIR) $(ALLCFLAGS) $< -o $@ # The xtests don't require the library $(XTESTPRGS_C): %: %.o @@ -374,7 +374,7 @@ $(XTESTPRGS_C): %: %.o # The "darwin_c" tests need the -fno-builtin option with some compilers. # It shouldn't hurt the other manual tests. $(MANTESTOBJS_C): %.o: %.c $(ALLHEADERS) - $(CC) -c -std=c99 -fno-builtin -I$(SRCINCDIR) $(CFLAGS) $< -o $@ + $(CC) -c -std=c99 -fno-builtin -I$(SRCINCDIR) $(ALLCFLAGS) $< -o $@ # Currently, the manual C tests don't require the library $(MANTESTPRGS_C): %: %.o -- GitLab