about summary refs log tree commit diff
path: root/csu
diff options
context:
space:
mode:
Diffstat (limited to 'csu')
-rw-r--r--csu/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/csu/Makefile b/csu/Makefile
index b57d3a7235..24e1ecd01c 100644
--- a/csu/Makefile
+++ b/csu/Makefile
@@ -158,7 +158,8 @@ $(objpfx)g$(start-installed-name): $(objpfx)$(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))):
-	cp /dev/null $(@:.o=.c)
+	@-rm -f $(@:.o=.c)
+	echo > $(@:.o=.c)
 	$(COMPILE.c) $(@:.o=.c) $(OUTPUT_OPTION)
 	rm -f $(@:.o=.c)