about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-08-27 19:58:20 +0000
committerRich Felker <dalias@aerifal.cx>2015-08-27 19:58:20 +0000
commita91ebdcfac6804714a1fe39f4375e2b4ebab085b (patch)
treec2ca9e8c302d071e3f67f6d117d648e2e17c5e73 /Makefile
parent35b3312b6fcf3f72dcd5abf0dc4ba64da537f5a1 (diff)
downloadmusl-a91ebdcfac6804714a1fe39f4375e2b4ebab085b.tar.gz
musl-a91ebdcfac6804714a1fe39f4375e2b4ebab085b.tar.xz
musl-a91ebdcfac6804714a1fe39f4375e2b4ebab085b.zip
fix makefile suppression of intermediate file removal
at one point, GNU make was removing crt/*.o after producing the copies
in lib/ due to an arcane misfeature for handling "intermediate" files.
the circumstances that caused this are no longer present in our
makefile, but the previous workaround using .PRECIOUS was wrong and
could result in corrupt/partial files being left behind during an
interrupted build. using .SECONDARY is the correct, documented fix
that will prevent deletion of "intermediate" files from ever
resurfacing.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 620c1fc5..07336d27 100644
--- a/Makefile
+++ b/Makefile
@@ -203,6 +203,6 @@ musl-git-%.tar.gz: .git
 musl-%.tar.gz: .git
 	 git archive --format=tar.gz --prefix=$(patsubst %.tar.gz,%,$@)/ -o $@ v$(patsubst musl-%.tar.gz,%,$@)
 
-.PRECIOUS: $(CRT_LIBS:lib/%=crt/%)
+.SECONDARY:
 
 .PHONY: all clean install install-libs install-headers install-tools