]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
authorRoland McGrath <roland@gnu.org>
Sun, 4 May 2003 23:27:34 +0000 (23:27 +0000)
committerRoland McGrath <roland@gnu.org>
Sun, 4 May 2003 23:27:34 +0000 (23:27 +0000)
Depend on $(before-compile).

ChangeLog
csu/Makefile
linuxthreads/ChangeLog
linuxthreads/Makefile
nptl/ChangeLog
nptl/Makefile

index e2a57b1fc9788977e21ec3833e58a4027b1dcba1..3dcc52e4972fd445b340e7de34505f13a24594f9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2003-05-04  Roland McGrath  <roland@redhat.com>
 
+       * csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
+       Depend on $(before-compile).
+
        * csu/Makefile ($(objpfx)crt%.o): Replace implicit rule with a static
        pattern rule.  The implicit rule could be ruled out when $(objpfx)
        didn't exist at the time of its consideration (ugh!).
index 2adf57dfba20c876df757252fc37801c783ca10e..d1899ad3e2ff041d46c6eed26af2214c0cdb2a25 100644 (file)
@@ -179,11 +179,9 @@ $(addprefix $(objpfx),$(sort g$(start-installed-name) \
 
 # These extra files are sometimes expected by system standard linking
 # procedures, but we have nothing for them to do.  So compile empty files.
-$(addprefix $(objpfx),$(filter-out $(start-installed-name),$(csu-dummies))):
-       @-rm -f $(@:.o=.c)
-       echo > $(@:.o=.c)
-       $(COMPILE.c) $(@:.o=.c) $(OUTPUT_OPTION)
-       rm -f $(@:.o=.c)
+$(addprefix $(objpfx),$(filter-out $(start-installed-name),$(csu-dummies))):\
+  $(before-compile)
+       $(COMPILE.c) -o $@ -x c /dev/null
 
 # These headers are used by the startup code.
 $(objpfx)abi-tag.h: $(..)abi-tags
index 04616f1b561574e2a5f7a27d61114df2eb24a936..8f695c631fba2b475c34983a8b51cbffd7034717 100644 (file)
@@ -1,3 +1,7 @@
+2003-05-04  Roland McGrath  <roland@redhat.com>
+
+       * Makefile ($(objpfx)../libc.so): New target.
+
 2003-04-26  Ulrich Drepper  <drepper@redhat.com>
 
        * pthread.c (__pthread_initialize_manager): Remove one last
index d832074432ab7bdda74866998ab98afc96170685..f105bd645467dd0f9d40d8a131a0d3c807a34a4e 100644 (file)
@@ -222,6 +222,7 @@ $(addprefix $(objpfx), \
 $(addprefix $(objpfx), $(tests-reverse)): \
   $(objpfx)../libc.so $(objpfx)libpthread.so \
   $(objpfx)libpthread_nonshared.a
+$(objpfx)../libc.so: $(common-objpfx)libc.so ;
 $(addprefix $(objpfx),$(librt-tests)): $(common-objpfx)rt/librt.so
 $(objpfx)unload: $(common-objpfx)dlfcn/libdl.so
 $(objpfx)unload.out: $(objpfx)libpthread.so $(objpfx)libpthread_nonshared.a
index 963fd6f51e901f33903cf4fb68a9643dc7595973..a1efb2bf26c4616b5a2fbb8a4c0c3b77f6e65528 100644 (file)
@@ -1,3 +1,7 @@
+2003-05-04  Roland McGrath  <roland@redhat.com>
+
+       * Makefile ($(objpfx)../libc.so): New target.
+
 2003-05-02  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
index 5a91ff8dfad579cac1593f0b81534f0653fe7940..a0bd3640f53117c9dc80737b26665236fb75f0a6 100644 (file)
@@ -314,6 +314,7 @@ $(objpfx)tst-unload: $(common-objpfx)dlfcn/libdl.so
 $(addprefix $(objpfx), $(tests-reverse)): \
   $(objpfx)../libc.so $(objpfx)libpthread.so \
   $(objpfx)libpthread_nonshared.a
+$(objpfx)../libc.so: $(common-objpfx)libc.so ;
 $(addprefix $(objpfx),$(tests-static)): $(objpfx)libpthread.a
 
 $(objpfx)tst-atfork2.out: $(objpfx)tst-atfork2mod.so