aboutsummaryrefslogtreecommitdiff
path: root/csu/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-11-11 02:34:36 +0000
committerRoland McGrath <roland@gnu.org>2002-11-11 02:34:36 +0000
commitadee0e1f174ed6ac1c146c1a042dca6c1b020173 (patch)
treeefe7e3ae6f14cc3a514fb48635da2063f5188e83 /csu/Makefile
parent8bbd8b0ba260a124edd42495b4194c7b9c30d0bc (diff)
downloadglibc-adee0e1f174ed6ac1c146c1a042dca6c1b020173.tar
glibc-adee0e1f174ed6ac1c146c1a042dca6c1b020173.tar.gz
glibc-adee0e1f174ed6ac1c146c1a042dca6c1b020173.tar.bz2
glibc-adee0e1f174ed6ac1c146c1a042dca6c1b020173.zip
* sysdeps/unix/make-syscalls.sh: Insert $(make-target-directory) at
the beginning of generated target commands. * csu/Makefile ($(objpfx)crti.o, $(objpfx)crtn.o): Add explicit dependencies for these in case implicit rule search skipped the nonexistent source directory. * sysdeps/gnu/Makefile ($(objpfx)errlist.d): Give this rule all the files with $(object-suffixes) as targets too. * Makerules [no_deps && objpfx] (before-compile): Add $(objpfx). and a target for it using $(make-target-directory). * Rules (before-compile): Add $(common-objpfx)bits/stdio-lim.h. * sysdeps/unix/sysv/linux/bits/pthreadtypes.h: Moved to ... * sysdeps/generic/bits/pthreadtypes.h: ... here.
Diffstat (limited to 'csu/Makefile')
-rw-r--r--csu/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/csu/Makefile b/csu/Makefile
index a71649ed6e..6b6991935a 100644
--- a/csu/Makefile
+++ b/csu/Makefile
@@ -113,6 +113,11 @@ $(objpfx)crtn.S: $(objpfx)initfini.s
-e '/@_.*_EPILOG_BEGINS/,/@_.*_EPILOG_ENDS/p' \
-e '/@TRAILER_BEGINS/,$$p' $< > $@
+# These explicit rules are necessary when the $(objpfx) subdirectory
+# did not exist at the time make considered the implicit rules using it.
+# This comes up with a fresh build using no_deps=t.
+$(patsubst %,$(objpfx)crt%.o,i n): %.o: %.S
+
$(objpfx)defs.h: $(objpfx)initfini.s
sed -n -e '/@TESTS_BEGIN/,/@TESTS_END/p' $< | \
$(AWK) -f defs.awk > $@