summaryrefslogtreecommitdiff
path: root/share/mk/bsd.prog.mk
diff options
context:
space:
mode:
authorPascal Stumpf <pascal@cvs.openbsd.org>2012-08-28 16:45:04 +0000
committerPascal Stumpf <pascal@cvs.openbsd.org>2012-08-28 16:45:04 +0000
commit18ac114a3fbcebb96a4bc2ea2ee59eae995eaef0 (patch)
tree90f88212b3423f0797f4890c03d2bef8c4dbf214 /share/mk/bsd.prog.mk
parentb585b1065b8f081279c5a2fb013a8a3aa6666899 (diff)
We can't add -nopie to LDFLAGS yet, since cc doesn't understand it. Use
NOPIE_LDFLAGS instead. Noticed by matthew@ and deraadt@. Sorry for the breakage ...
Diffstat (limited to 'share/mk/bsd.prog.mk')
-rw-r--r--share/mk/bsd.prog.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk
index 20aa90b6b1f..dad79caa35e 100644
--- a/share/mk/bsd.prog.mk
+++ b/share/mk/bsd.prog.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.prog.mk,v 1.55 2012/08/28 14:26:47 pascal Exp $
+# $OpenBSD: bsd.prog.mk,v 1.56 2012/08/28 16:45:03 pascal Exp $
# $NetBSD: bsd.prog.mk,v 1.55 1996/04/08 21:19:26 jtc Exp $
# @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
@@ -13,7 +13,7 @@
.if defined(LDSTATIC) || defined(NOPIE)
CFLAGS+= ${NOPIE_FLAGS}
AFLAGS+= ${NOPIE_FLAGS}
-LDFLAGS+= -nopie
+LDFLAGS+= ${NOPIE_LDFLAGS}
.endif
.if ${WARNINGS:L} == "yes"