diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-04 02:03:07 -0500 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2023-12-19 14:00:03 -0500 |
commit | 751a3427e012b165086a4fd2da5981b0bbeaac07 (patch) | |
tree | ae0e96d3920f66443f20498b47036731e2dfd96a /libgloss | |
parent | f81bf08f7caaebf877956d5d09c56a5d501de08a (diff) | |
download | newlib-751a3427e012b165086a4fd2da5981b0bbeaac07.zip newlib-751a3427e012b165086a4fd2da5981b0bbeaac07.tar.gz newlib-751a3427e012b165086a4fd2da5981b0bbeaac07.tar.bz2 |
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.
Diffstat (limited to 'libgloss')
-rw-r--r-- | libgloss/config/default.mh | 2 | ||||
-rw-r--r-- | libgloss/config/ppc.mh | 2 | ||||
-rw-r--r-- | libgloss/epiphany/Makefile.in | 2 | ||||
-rw-r--r-- | libgloss/hp74x/Makefile.in | 2 | ||||
-rw-r--r-- | libgloss/pru/Makefile.in | 2 | ||||
-rw-r--r-- | libgloss/spu/Makefile.in | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/libgloss/config/default.mh b/libgloss/config/default.mh index 81f0920..64dc02f 100644 --- a/libgloss/config/default.mh +++ b/libgloss/config/default.mh @@ -14,7 +14,7 @@ AR_FLAGS = rc .C.o: $(CC) $(CFLAGS_FOR_TARGET) -O2 $(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. diff --git a/libgloss/config/ppc.mh b/libgloss/config/ppc.mh index a3d157b..d1bfd75 100644 --- a/libgloss/config/ppc.mh +++ b/libgloss/config/ppc.mh @@ -18,7 +18,7 @@ AR_FLAGS = qc .C.o: $(CC) $(CFLAGS_FOR_TARGET) $(CFLAGS_MRELOCATABLE) -O2 $(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. 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. diff --git a/libgloss/hp74x/Makefile.in b/libgloss/hp74x/Makefile.in index 12c51bf..0167e1c 100644 --- a/libgloss/hp74x/Makefile.in +++ b/libgloss/hp74x/Makefile.in @@ -117,7 +117,7 @@ install: .s.o: $(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -c $< -# $(AS) $(CFLAGS_FOR_TARGET) $(INCLUDES) -c $< +# $(AS) $(CFLAGS_FOR_TARGET) -c $< .SUFFIXES: .S .c .o .s .lif # diff --git a/libgloss/pru/Makefile.in b/libgloss/pru/Makefile.in index 7a2f290..fc5905a 100644 --- a/libgloss/pru/Makefile.in +++ b/libgloss/pru/Makefile.in @@ -89,7 +89,7 @@ LDFLAGS_FOR_TARGET = ${MULTILIB} .C.o: $(CC) $(CFLAGS_FOR_TARGET) -Os $(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. diff --git a/libgloss/spu/Makefile.in b/libgloss/spu/Makefile.in index bc8768b..4be0783 100644 --- a/libgloss/spu/Makefile.in +++ b/libgloss/spu/Makefile.in @@ -95,7 +95,7 @@ AR_FLAGS = qc .C.o: $(CC) $(CFLAGS_FOR_TARGET) -O2 $(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. |