summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2014-06-08 17:29:31 +0000
committerbdrewery <bdrewery@FreeBSD.org>2014-06-08 17:29:31 +0000
commit989e2c600051059839eb88abfc343a905caf37eb (patch)
tree770fe42f243492477db77896e2564375cd017ad4 /usr.sbin/lpr
parent14c8389ad08e251819c8c35fcaa75e0519595437 (diff)
downloadFreeBSD-src-989e2c600051059839eb88abfc343a905caf37eb.zip
FreeBSD-src-989e2c600051059839eb88abfc343a905caf37eb.tar.gz
In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE.
This is currently an opt-in build flag. Once ASLR support is ready and stable it should changed to opt-out and be enabled by default along with ASLR. Each application Makefile uses opt-out to ensure that ASLR will be enabled by default in new directories when the system is compiled with PIE/ASLR. [2] Mark known build failures as NO_PIE for now. The only known runtime failure was rtld. [1] http://www.bsdcan.org/2014/schedule/events/452.en.html Submitted by: Shawn Webb <lattera@gmail.com> Discussed between: des@ and Shawn Webb [2]
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r--usr.sbin/lpr/chkprintcap/Makefile2
-rw-r--r--usr.sbin/lpr/lpc/Makefile2
-rw-r--r--usr.sbin/lpr/lpd/Makefile2
-rw-r--r--usr.sbin/lpr/lpq/Makefile2
-rw-r--r--usr.sbin/lpr/lpr/Makefile2
-rw-r--r--usr.sbin/lpr/lprm/Makefile2
-rw-r--r--usr.sbin/lpr/pac/Makefile2
7 files changed, 14 insertions, 0 deletions
diff --git a/usr.sbin/lpr/chkprintcap/Makefile b/usr.sbin/lpr/chkprintcap/Makefile
index ffffffb..1ea2254 100644
--- a/usr.sbin/lpr/chkprintcap/Makefile
+++ b/usr.sbin/lpr/chkprintcap/Makefile
@@ -11,4 +11,6 @@ CFLAGS+= -I${.CURDIR}/../common_source
DPADD= ${LIBLPR}
LDADD= ${LIBLPR}
+NO_PIE= yes
+
.include <bsd.prog.mk>
diff --git a/usr.sbin/lpr/lpc/Makefile b/usr.sbin/lpr/lpc/Makefile
index 35fa52a..65a8010 100644
--- a/usr.sbin/lpr/lpc/Makefile
+++ b/usr.sbin/lpr/lpc/Makefile
@@ -16,4 +16,6 @@ WARNS?= 0
DPADD= ${LIBLPR} ${LIBEDIT} ${LIBTERMCAP}
LDADD= ${LIBLPR} -ledit -ltermcap
+NO_PIE= yes
+
.include <bsd.prog.mk>
diff --git a/usr.sbin/lpr/lpd/Makefile b/usr.sbin/lpr/lpd/Makefile
index 0d7d93e..bd3e25a 100644
--- a/usr.sbin/lpr/lpd/Makefile
+++ b/usr.sbin/lpr/lpd/Makefile
@@ -12,4 +12,6 @@ WARNS?= 1
DPADD= ${LIBLPR}
LDADD= ${LIBLPR}
+NO_PIE= yes
+
.include <bsd.prog.mk>
diff --git a/usr.sbin/lpr/lpq/Makefile b/usr.sbin/lpr/lpq/Makefile
index 4df437e..1c2504b 100644
--- a/usr.sbin/lpr/lpq/Makefile
+++ b/usr.sbin/lpr/lpq/Makefile
@@ -13,4 +13,6 @@ CFLAGS+= -I${.CURDIR}/../common_source
DPADD= ${LIBLPR}
LDADD= ${LIBLPR}
+NO_PIE= yes
+
.include <bsd.prog.mk>
diff --git a/usr.sbin/lpr/lpr/Makefile b/usr.sbin/lpr/lpr/Makefile
index 1894b00..cfeebb0 100644
--- a/usr.sbin/lpr/lpr/Makefile
+++ b/usr.sbin/lpr/lpr/Makefile
@@ -18,4 +18,6 @@ WARNS?= 2
DPADD= ${LIBLPR}
LDADD= ${LIBLPR}
+NO_PIE= yes
+
.include <bsd.prog.mk>
diff --git a/usr.sbin/lpr/lprm/Makefile b/usr.sbin/lpr/lprm/Makefile
index 44bc93a..bd7e321 100644
--- a/usr.sbin/lpr/lprm/Makefile
+++ b/usr.sbin/lpr/lprm/Makefile
@@ -15,4 +15,6 @@ CFLAGS+= -I${.CURDIR}/../common_source
DPADD= ${LIBLPR}
LDADD= ${LIBLPR}
+NO_PIE= yes
+
.include <bsd.prog.mk>
diff --git a/usr.sbin/lpr/pac/Makefile b/usr.sbin/lpr/pac/Makefile
index bd895a7..3a157c9 100644
--- a/usr.sbin/lpr/pac/Makefile
+++ b/usr.sbin/lpr/pac/Makefile
@@ -11,4 +11,6 @@ CFLAGS+= -I${.CURDIR}/../common_source
DPADD= ${LIBLPR}
LDADD= ${LIBLPR}
+NO_PIE= yes
+
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud