pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/mk/platform
Module Name: pkgsrc
Committed By: khorben
Date: Fri Jun 9 17:21:53 UTC 2017
Modified Files:
pkgsrc/mk/platform: Linux.mk
Log Message:
Register support for RELRO on Linux (limited to x86 first)
Tested on Debian GNU/Linux 8.8 (amd64).
Actual support will depend on the underlying distribution though.
To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 pkgsrc/mk/platform/Linux.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/mk/platform/Linux.mk
diff -u pkgsrc/mk/platform/Linux.mk:1.74 pkgsrc/mk/platform/Linux.mk:1.75
--- pkgsrc/mk/platform/Linux.mk:1.74 Fri Jun 9 17:04:18 2017
+++ pkgsrc/mk/platform/Linux.mk Fri Jun 9 17:21:53 2017
@@ -1,4 +1,4 @@
-# $NetBSD: Linux.mk,v 1.74 2017/06/09 17:04:18 khorben Exp $
+# $NetBSD: Linux.mk,v 1.75 2017/06/09 17:21:53 khorben Exp $
#
# Variable definitions for the Linux operating system.
@@ -122,6 +122,12 @@ _OPSYS_MAX_CMDLEN_CMD?= /usr/bin/getconf
# Register support for FORTIFY (with GCC)
_OPSYS_SUPPORTS_FORTIFY=yes
+# Register support for RELRO on supported architectures (with GCC)
+.if (${MACHINE_ARCH} == "i386") || \
+ (${MACHINE_ARCH} == "x86_64")
+_OPSYS_SUPPORTS_RELRO= yes
+.endif
+
# Register support for SSP on x86 architectures
.if (${MACHINE_ARCH} == "i386") || \
(${MACHINE_ARCH} == "x86_64")
Home |
Main Index |
Thread Index |
Old Index