summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-04-02 12:55:06 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-04-02 12:55:06 +0000
commitdebd071dcc8e9a907c45cc731c335178c39d1acb (patch)
tree5a641efb33c58da5db6c6d707b78c5a931bbaa16 /share
parent319409f43ea4646f7a42bb0903edcd1e0fbfa8b8 (diff)
new variable NOLIBSTATIC= prevents installation of a static library,
in cases where you don't want it installed, or it isn't built. ok jsg
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.lib.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
index b8ac510c931..325f63e7659 100644
--- a/share/mk/bsd.lib.mk
+++ b/share/mk/bsd.lib.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.lib.mk,v 1.99 2019/04/02 11:30:07 deraadt Exp $
+# $OpenBSD: bsd.lib.mk,v 1.100 2019/04/02 12:55:05 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
@@ -273,12 +273,14 @@ beforeinstall:
.endif
realinstall:
+.if !defined(NOLIBSTATIC)
${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m 600 lib${LIB}.a \
${DESTDIR}${LIBDIR}/lib${LIB}.a
.if (${INSTALL_COPY} != "-p")
${RANLIB} -t ${DESTDIR}${LIBDIR}/lib${LIB}.a
.endif
chmod ${LIBMODE} ${DESTDIR}${LIBDIR}/lib${LIB}.a
+.endif
.if !defined(NOPROFILE)
${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m 600 \
lib${LIB}_p.a ${DESTDIR}${LIBDIR}