summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2019-04-02 12:55:05 +0000
committerderaadt <deraadt@openbsd.org>2019-04-02 12:55:05 +0000
commitfac73c73f4589c9cc4ac1fdb4c11c1065012f818 (patch)
tree69f177036daffa29129a60f213eb2d3ba1dc9f12
parentfix broken comment (diff)
downloadwireguard-openbsd-fac73c73f4589c9cc4ac1fdb4c11c1065012f818.tar.xz
wireguard-openbsd-fac73c73f4589c9cc4ac1fdb4c11c1065012f818.zip
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
-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}