diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-02-11 17:53:01 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-02-11 17:53:01 +0000 |
commit | 88ac188ad42f0b7633261212eb1bc475490c280d (patch) | |
tree | 80713be7e61a81fe31df7b1c4540283c8622fcc8 | |
parent | 9712f8041a8dfbbd63cd1c5839c03f9c32fb61a8 (diff) |
During build, delete all old library relink files to save disk space.
It is not typical for "make build" to do pruning of the base system, but
... not sure where else we can do this
ok kettenis
-rw-r--r-- | share/mk/bsd.lib.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 0d9ffdba88e..fabf4d01488 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.lib.mk,v 1.95 2018/12/30 21:55:07 guenther Exp $ +# $OpenBSD: bsd.lib.mk,v 1.96 2019/02/11 17:53:00 deraadt Exp $ # $NetBSD: bsd.lib.mk,v 1.67 1996/01/17 20:39:26 mycroft Exp $ # @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91 @@ -286,6 +286,10 @@ realinstall: ${INSTALL} ${INSTALL_COPY} -S -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ ${FULLSHLIBNAME} ${DESTDIR}${LIBDIR} .if defined(LIBREBUILD) +.if !defined(DESTDIR) + @echo cleaning out old relink libraries to conserve disk space + rm -f /usr/share/relink/${LIBDIR}/lib${LIB}.*.a +.endif ${INSTALL} -d -o ${LIBOWN} -g ${LIBGRP} -m 755 \ ${DESTDIR}/usr/share/relink/${LIBDIR} ${INSTALL} ${INSTALL_COPY} -S -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ |