pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/platform Allow PIE and RELRO on aarch64



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ff3bda661380
branches:  trunk
changeset: 443524:ff3bda661380
user:      js <js%pkgsrc.org@localhost>
date:      Mon Dec 14 21:45:43 2020 +0000

description:
Allow PIE and RELRO on aarch64

I already compiled plenty of packages on my Pinebook Pro with both PIE and
RELRO enabled and have yet to see a build failure.

diffstat:

 mk/platform/NetBSD.mk |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2f4ba42da86d -r ff3bda661380 mk/platform/NetBSD.mk
--- a/mk/platform/NetBSD.mk     Mon Dec 14 19:50:32 2020 +0000
+++ b/mk/platform/NetBSD.mk     Mon Dec 14 21:45:43 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: NetBSD.mk,v 1.60 2020/03/22 21:17:30 joerg Exp $
+# $NetBSD: NetBSD.mk,v 1.61 2020/12/14 21:45:43 js Exp $
 #
 # Variable definitions for the NetBSD operating system.
 
@@ -136,13 +136,15 @@
 
 # Register support for PIE on supported architectures (with GCC)
 .if (${MACHINE_ARCH} == "i386") || \
-    (${MACHINE_ARCH} == "x86_64")
+    (${MACHINE_ARCH} == "x86_64") || \
+    (${MACHINE_ARCH} == "aarch64")
 _OPSYS_SUPPORTS_MKPIE= yes
 .endif
 
 # Register support for RELRO on supported architectures
 .if (${MACHINE_ARCH} == "i386") || \
-    (${MACHINE_ARCH} == "x86_64")
+    (${MACHINE_ARCH} == "x86_64") || \
+    (${MACHINE_ARCH} == "aarch64")
 _OPSYS_SUPPORTS_RELRO= yes
 .endif
 



Home | Main Index | Thread Index | Old Index