diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-12-30 22:32:09 +0300 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-01-19 03:12:02 +0300 |
commit | 71086e8b2d70c1e71a8372f35d9901505fc72905 (patch) | |
tree | 420e7b4c1499ffd4a6289fd88b7c7e24146fba41 /newlib/libc/sys/epiphany | |
parent | ff539cc0f9ba4e52682a2647e4347ead4f2f8787 (diff) |
newlib: delete (most) redundant lib_a_CCASFLAGS=$(AM_CCASFLAGS)
Since automake already sets per-library CCASFLAGS to $(AM_CCASFLAGS)
by default, there's no need to explicitly set it here.
Many of these dirs don't have .S files in the first place, so the rule
doesn't even do anything. That can easily be seen when Makefile.in has
no changes as a result.
For the dirs with .S files, the custom rules are the same as the pattern
.S.o rules, so this is a nice cleanup.
The only dir that was adding extra flags (newlib/libc/machine/mn10300/)
to the per-library setting can have it moved to the global AM_CCASFLAGS
since the subdir only has one target. Although the setting just adds
extra debugging flags, so maybe it should be deleted in general.
There are a few dirs that we leave the redundant setting in place. This
is to workaround an automake limitation in subdirs that support building
with & w/out libtool:
https://www.gnu.org/software/automake/manual/html_node/Objects-created-both-with-libtool-and-without.html
Diffstat (limited to 'newlib/libc/sys/epiphany')
-rw-r--r-- | newlib/libc/sys/epiphany/Makefile.am | 1 | ||||
-rw-r--r-- | newlib/libc/sys/epiphany/Makefile.in | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/newlib/libc/sys/epiphany/Makefile.am b/newlib/libc/sys/epiphany/Makefile.am index 847a37b51..0b6ee6e8c 100644 --- a/newlib/libc/sys/epiphany/Makefile.am +++ b/newlib/libc/sys/epiphany/Makefile.am @@ -34,7 +34,6 @@ noinst_LIBRARIES = lib.a # crt0.o comes from libgloss lib_a_SOURCES = e_printf.c -lib_a_CCASFLAGS = $(AM_CCASFLAGS) lib_a_CFLAGS = $(AM_CFLAGS) ACLOCAL_AMFLAGS = -I ../../.. -I ../../../.. -I ../../../../config diff --git a/newlib/libc/sys/epiphany/Makefile.in b/newlib/libc/sys/epiphany/Makefile.in index ba0d187aa..d18dadfd7 100644 --- a/newlib/libc/sys/epiphany/Makefile.in +++ b/newlib/libc/sys/epiphany/Makefile.in @@ -308,7 +308,6 @@ noinst_LIBRARIES = lib.a # crt0.o comes from libgloss lib_a_SOURCES = e_printf.c -lib_a_CCASFLAGS = $(AM_CCASFLAGS) lib_a_CFLAGS = $(AM_CFLAGS) ACLOCAL_AMFLAGS = -I ../../.. -I ../../../.. -I ../../../../config CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host |