summaryrefslogtreecommitdiffstats
path: root/distrib/special/bioctl
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-12-23 17:16:00 +0000
committerderaadt <deraadt@openbsd.org>2014-12-23 17:16:00 +0000
commit2f911c79c4986d341e54f26fecc78c7ef77924a0 (patch)
tree9db463e9d0e249015e46a816ab74b9d9d365715e /distrib/special/bioctl
parentMake sure the GOT and PLT are not writable. (diff)
downloadwireguard-openbsd-2f911c79c4986d341e54f26fecc78c7ef77924a0.tar.xz
wireguard-openbsd-2f911c79c4986d341e54f26fecc78c7ef77924a0.zip
/bin and /sbin are moving towards static PIE, so on many architectures
the PIC .o files are unsuitable for static "instbin". This adds more work at build time, but the result will be optimized for size.
Diffstat (limited to 'distrib/special/bioctl')
-rw-r--r--distrib/special/bioctl/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/distrib/special/bioctl/Makefile b/distrib/special/bioctl/Makefile
new file mode 100644
index 00000000000..b6dadf2259e
--- /dev/null
+++ b/distrib/special/bioctl/Makefile
@@ -0,0 +1,21 @@
+# $OpenBSD: Makefile,v 1.1 2014/12/23 17:16:01 deraadt Exp $
+
+PROG= bioctl
+SRCS= bioctl.c
+
+LDADD= -lutil
+DPADD= ${LIBUTIL}
+
+CDIAGFLAGS= -Wall
+CDIAGFLAGS+= -Wpointer-arith
+CDIAGFLAGS+= -Wno-uninitialized
+CDIAGFLAGS+= -Wstrict-prototypes
+CDIAGFLAGS+= -Wmissing-prototypes
+CDIAGFLAGS+= -Wunused
+CDIAGFLAGS+= -Wsign-compare
+CDIAGFLAGS+= -Wshadow
+
+MAN= bioctl.8
+
+.PATH: ${.CURDIR}/../../../sbin/bioctl
+.include <bsd.prog.mk>