diff options
author | Martin Natano <natano@cvs.openbsd.org> | 2016-11-08 19:04:50 +0000 |
---|---|---|
committer | Martin Natano <natano@cvs.openbsd.org> | 2016-11-08 19:04:50 +0000 |
commit | 2ae6b7d7b3cd6b6a6ff2821ad66bb300ae4b23bd (patch) | |
tree | ea237fe56307dbe01d652e11ed0ecfaf9b9ce688 /lib/csu | |
parent | e715b2251e60d212c8308ab72e656faee68dbd5f (diff) |
Use sed -i to post-process .depend. This avoids permission issues caused
by the file being created in /tmp.
tweaks and ok tb
Diffstat (limited to 'lib/csu')
-rw-r--r-- | lib/csu/Makefile | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/csu/Makefile b/lib/csu/Makefile index 4436e2fdfe7..2fc81198fcd 100644 --- a/lib/csu/Makefile +++ b/lib/csu/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.24 2016/10/15 13:00:07 espie Exp $ +# $OpenBSD: Makefile,v 1.25 2016/11/08 19:04:48 natano Exp $ OBJS= crt0.o gcrt0.o OBJS+= crtbegin.o crtend.o @@ -82,12 +82,6 @@ realinstall: ${DESTDIR}/usr/lib afterdepend: .depend - @TMP=`mktemp .dependXXXXXXXXXX` || exit 1; \ - if sed -e 's/^\([^\.]*\).o[ ]*:/\1.o g\1.o r\1.o:/' \ - < .depend > $$TMP; then \ - mv $$TMP .depend; \ - else \ - rm -f $$TMP; \ - fi + @sed -i 's/^\([^\.]*\).o[ ]*:/\1.o g\1.o r\1.o:/' .depend .include <bsd.prog.mk> |