Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Add variables for static PIE
details: https://anonhg.NetBSD.org/src/rev/99fdbb078a0d
branches: trunk
changeset: 356704:99fdbb078a0d
user: christos <christos%NetBSD.org@localhost>
date: Sun Oct 08 15:03:50 2017 +0000
description:
Add variables for static PIE
diffstat:
share/mk/bsd.README | 6 +++++-
share/mk/bsd.own.mk | 8 +++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
diffs (42 lines):
diff -r 59937b059ce9 -r 99fdbb078a0d share/mk/bsd.README
--- a/share/mk/bsd.README Sun Oct 08 15:02:33 2017 +0000
+++ b/share/mk/bsd.README Sun Oct 08 15:03:50 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.README,v 1.362 2017/05/21 15:28:42 riastradh Exp $
+# $NetBSD: bsd.README,v 1.363 2017/10/08 15:03:50 christos Exp $
# @(#)bsd.README 8.2 (Berkeley) 4/2/94
This is the README file for the make "include" files for the NetBSD
@@ -402,6 +402,10 @@
libraries.
Default: yes
+MKSTATICPIE Compile in support for static pie binaries. These binaries
+ use a special rcrt0.o/mcrt0.o that do the necessary relocations
+ Default: yes on platforms that support it.
+
MKSTRIPSYM If "yes", strip all local symbols from shared libraries;
the affect is equivalent to -x option of ld(1). If "no",
strip only temporary local symbols; the affect is equivalent
diff -r 59937b059ce9 -r 99fdbb078a0d share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk Sun Oct 08 15:02:33 2017 +0000
+++ b/share/mk/bsd.own.mk Sun Oct 08 15:03:50 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.own.mk,v 1.1017 2017/10/06 13:00:57 tsutsui Exp $
+# $NetBSD: bsd.own.mk,v 1.1018 2017/10/08 15:03:50 christos Exp $
# This needs to be before bsd.init.mk
.if defined(BSD_MK_COMPAT_FILE)
@@ -1017,6 +1017,12 @@
MKRELRO?= no
.endif
+.if ${MACHINE_ARCH} == "x86_64"
+MKSTATICPIE?= yes
+.else
+MKSTATICPIE?= no
+.endif
+
#
# MK* options which default to "yes".
#
Home |
Main Index |
Thread Index |
Old Index