diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-09-16 20:41:17 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-09-16 20:41:17 +0000 |
commit | b37a18e77f978692684ef900f441f437c4201198 (patch) | |
tree | 1683832eb7f716a0110240e7c991872630b74e8e /share/mk | |
parent | 709b3122cb6d3d201d1d8ee03423e70fafbdf921 (diff) |
Add support for building non-PIE libraries.
ok deraadt@
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/bsd.lib.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 6aeb737d201..66f764cff4c 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.lib.mk,v 1.67 2012/08/31 20:13:09 kettenis Exp $ +# $OpenBSD: bsd.lib.mk,v 1.68 2012/09/16 20:41:16 kettenis 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 @@ -27,6 +27,11 @@ SHLIB_MINOR=${minor} .SUFFIXES: .SUFFIXES: .out .o .go .po .so .S .s .c .cc .C .cxx .f .y .l .m4 .m +.if defined(NOPIE) +CFLAGS+= ${NOPIE_FLAGS} +AFLAGS+= ${NOPIE_FLAGS} +.endif + .c.o: @echo "${COMPILE.c} ${.IMPSRC} -o ${.TARGET}" @${COMPILE.c} ${.IMPSRC} -o ${.TARGET}.o |