|
|
Message-ID: <20251113200633.833127-3-bill.roberts@arm.com> Date: Thu, 13 Nov 2025 13:44:27 -0600 From: Bill Roberts <bill.roberts@....com> To: musl@...ts.openwall.com Cc: Bill Roberts <bill.roberts@....com> Subject: [PATCH 2/3] Makefile: support awk processing of .S files Don't skip .S files when post-processing with awk. Signed-off-by: Bill Roberts <bill.roberts@....com> --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a20bafaf..4e62e0b3 100644 --- a/Makefile +++ b/Makefile @@ -136,15 +136,17 @@ CC_CMD = $(CC) $(CFLAGS_ALL) -c -o $@ $< # Choose invocation of assembler to be used ifeq ($(ADD_CFI),yes) AS_CMD = LC_ALL=C awk -f $(srcdir)/tools/add-cfi.common.awk -f $(srcdir)/tools/add-cfi.$(ARCH).awk $< | $(CC) $(CFLAGS_ALL) -x assembler -c -o $@ - + CCS_CMD = LC_ALL=C awk -f $(srcdir)/tools/add-cfi.common.awk -f $(srcdir)/tools/add-cfi.$(ARCH).awk $< | $(CC) $(CFLAGS_ALL) -x assembler-with-cpp -c -o $@ - else AS_CMD = $(CC_CMD) + CCS_CMD = $(CC_CMD) endif obj/%.o: $(srcdir)/%.s $(AS_CMD) obj/%.o: $(srcdir)/%.S - $(CC_CMD) + $(CCS_CMD) obj/%.o: $(srcdir)/%.c $(GENH) $(IMPH) $(CC_CMD) @@ -153,7 +155,7 @@ obj/%.lo: $(srcdir)/%.s $(AS_CMD) obj/%.lo: $(srcdir)/%.S - $(CC_CMD) + $(CCS_CMD) obj/%.lo: $(srcdir)/%.c $(GENH) $(IMPH) $(CC_CMD) -- 2.51.0
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.