aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/Makefile.am
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-01-22 23:00:39 -0500
committerMike Frysinger <vapier@gentoo.org>2022-01-26 03:11:20 -0500
commitdb2ef77287fcc19dfa1fe6c3d3068794ff99bd01 (patch)
treeba67c8330d0e9dab43a18bd782287dcc3d8d2bad /newlib/libc/Makefile.am
parent233997993408d2cba4f2fd973a61e49ee7f65922 (diff)
downloadnewlib-db2ef77287fcc19dfa1fe6c3d3068794ff99bd01.zip
newlib-db2ef77287fcc19dfa1fe6c3d3068794ff99bd01.tar.gz
newlib-db2ef77287fcc19dfa1fe6c3d3068794ff99bd01.tar.bz2
newlib: libc: merge machine/ trampoline up a level
The machine/{configure,Makefile} files exist only to fan out to the specific machine/$arch/ subdir. We already have all that same info in the libc/ dir itself, so by moving the recursive configure and make calls into it, we can cut off this logic entirely and save the overhead. For arches that don't have a machine subdir, it means they can skip the logic entirely. Although there's prob not too many of those.
Diffstat (limited to 'newlib/libc/Makefile.am')
-rw-r--r--newlib/libc/Makefile.am10
1 files changed, 8 insertions, 2 deletions
diff --git a/newlib/libc/Makefile.am b/newlib/libc/Makefile.am
index cdeaf84..4700f46 100644
--- a/newlib/libc/Makefile.am
+++ b/newlib/libc/Makefile.am
@@ -39,8 +39,14 @@ endif
# The order of SUBDIRS is important for the integrated documentation.
# Do not change the order without considering the doc impact.
SUBDIRS = argz stdlib ctype search $(STDIO_SUBDIR) $(STDIO64_SUBDIR) string $(SIGNAL_SUBDIR) time locale sys reent \
- errno misc machine $(UNIX_SUBDIR) $(POSIX_SUBDIR) $(SYSCALLS_SUBDIR) $(NEWLIB_ICONV_DIRS) \
- $(XDR_SUBDIR) ssp .
+ errno misc $(UNIX_SUBDIR) $(POSIX_SUBDIR) $(SYSCALLS_SUBDIR) $(NEWLIB_ICONV_DIRS) \
+ $(XDR_SUBDIR) ssp
+if HAVE_LIBC_MACHINE_DIR
+SUBDIRS += $(LIBC_MACHINE_DIR)
+endif
+# NB: This must come last to avoid parallel build issues with current lib.a
+# accumulation logic.
+SUBDIRS += .
noinst_DATA = $(CRT0)