summaryrefslogtreecommitdiff
path: root/csu
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-05-04 23:27:34 +0000
committerRoland McGrath <roland@gnu.org>2003-05-04 23:27:34 +0000
commitc6696b7957c62d89379d765c9a9008441ee7580c (patch)
tree88591bb3719915e92dbffb9f61816d412d12cc23 /csu
parent4b0b5882391d3286130125c5c50860ba22d46246 (diff)
downloadglibc-c6696b7957c62d89379d765c9a9008441ee7580c.tar.gz
* csu/Makefile ($(csu-dummies) target rule): Don't use a temp C file.
Depend on $(before-compile).
Diffstat (limited to 'csu')
-rw-r--r--csu/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/csu/Makefile b/csu/Makefile
index 2adf57dfba..d1899ad3e2 100644
--- a/csu/Makefile
+++ b/csu/Makefile
@@ -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