Module Name:    src
Committed By:   christos
Date:           Thu May 19 15:38:13 UTC 2016

Modified Files:
        src/share/mk: bsd.own.mk

Log Message:
Turn on PIE for sparc64 so we can use ASLR effectively.


To generate a diff of this commit:
cvs rdiff -u -r1.923 -r1.924 src/share/mk/bsd.own.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.923 src/share/mk/bsd.own.mk:1.924
--- src/share/mk/bsd.own.mk:1.923	Wed May 11 09:41:56 2016
+++ src/share/mk/bsd.own.mk	Thu May 19 11:38:13 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.923 2016/05/11 13:41:56 martin Exp $
+#	$NetBSD: bsd.own.mk,v 1.924 2016/05/19 15:38:13 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -1049,7 +1049,7 @@ MKCTF?=		yes
 #
 # PIE is enabled on amd64 by default
 #
-.if ${MACHINE_ARCH} == "x86_64"
+.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE} == "sparc64"
 MKPIE?=		yes
 .else
 MKPIE?=		no

Reply via email to