From 751a3427e012b165086a4fd2da5981b0bbeaac07 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 4 Dec 2023 02:03:07 -0500 Subject: libgloss: drop $(INCLUDES) when using $(AS) Since $(AS) is the assembler, passing it a list of preprocessor include flags doesn't make much sense. The files aren't preprocessed which means `#include` lines aren't respected, and while it would affect `.include` usage, we never use that, and it's extremely unlikely to change. Plus, it's extremely unlikely we'd have .s files in common places to include vs contained entirely within a specific arch dir, and at that point, it can be included directly (with no flags), or the arch can add the unique set of include paths that it needs for itself. --- libgloss/epiphany/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgloss/epiphany') diff --git a/libgloss/epiphany/Makefile.in b/libgloss/epiphany/Makefile.in index 6cf55e2..6670b79 100644 --- a/libgloss/epiphany/Makefile.in +++ b/libgloss/epiphany/Makefile.in @@ -105,7 +105,7 @@ AR_FLAGS = qc .S.o: $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -c $(CFLAGS) $< .s.o: - $(AS) $(ASFLAGS_FOR_TARGET) $(INCLUDES) $(ASFLAGS) -o $*.o $< + $(AS) $(ASFLAGS_FOR_TARGET) $(ASFLAGS) -o $*.o $< # # GCC knows to run the preprocessor on .S files before it assembles them. -- cgit v1.1