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: nia
Date: Thu Mar 3 07:30:07 UTC 2022
Modified Files:
pkgsrc/mk/platform: NetBSD.mk README
Log Message:
mk/platform: Add a variable for detectic static PIE support.
To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 pkgsrc/mk/platform/NetBSD.mk
cvs rdiff -u -r1.7 -r1.8 pkgsrc/mk/platform/README
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/NetBSD.mk
diff -u pkgsrc/mk/platform/NetBSD.mk:1.70 pkgsrc/mk/platform/NetBSD.mk:1.71
--- pkgsrc/mk/platform/NetBSD.mk:1.70 Mon Nov 29 16:14:23 2021
+++ pkgsrc/mk/platform/NetBSD.mk Thu Mar 3 07:30:06 2022
@@ -1,4 +1,4 @@
-# $NetBSD: NetBSD.mk,v 1.70 2021/11/29 16:14:23 jperkin Exp $
+# $NetBSD: NetBSD.mk,v 1.71 2022/03/03 07:30:06 nia Exp $
#
# Variable definitions for the NetBSD operating system.
@@ -155,6 +155,12 @@ _OPSYS_SUPPORTS_FORTIFY=yes
_OPSYS_SUPPORTS_MKPIE= yes
.endif
+.if (${MACHINE_ARCH} == "i386" || \
+ ${MACHINE_ARCH} == "x86_64") && \
+ ${OPSYS_VERSION} >= 090000
+OPSYS_HAS_STATIC_PIE= # defined
+.endif
+
# Register support for RELRO on supported architectures
.if (${MACHINE_ARCH} == "i386") || \
(${MACHINE_ARCH} == "x86_64") || \
Index: pkgsrc/mk/platform/README
diff -u pkgsrc/mk/platform/README:1.7 pkgsrc/mk/platform/README:1.8
--- pkgsrc/mk/platform/README:1.7 Tue Nov 9 12:04:43 2021
+++ pkgsrc/mk/platform/README Thu Mar 3 07:30:06 2022
@@ -1,4 +1,4 @@
-$NetBSD: README,v 1.7 2021/11/09 12:04:43 nia Exp $
+$NetBSD: README,v 1.8 2022/03/03 07:30:06 nia Exp $
These files contain platform-specific definitions that are used by the
pkgsrc infrastructure.
@@ -105,6 +105,11 @@ TODO: Document all these variables.
OPSYS_HAS_KQUEUE is defined if kqueue(2) is supported.
+ OPSYS_HAS_STATIC_PIE is defined if "-static -pie" is
+ supported by the toolchain. Position-independent executables
+ may need to be disabled on a per-package basis if the
+ package uses static linking.
+
_OPSYS_CAN_CHECK_SHLIBS is "yes" if "check-shlibs" in check/check-shlibs.mk
can be performed.
Home |
Main Index |
Thread Index |
Old Index