pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/platform mk/platform: Add a variable for detectic s...
details: https://anonhg.NetBSD.org/pkgsrc/rev/301959c3f06c
branches: trunk
changeset: 374913:301959c3f06c
user: nia <nia%pkgsrc.org@localhost>
date: Thu Mar 03 07:30:06 2022 +0000
description:
mk/platform: Add a variable for detectic static PIE support.
diffstat:
mk/platform/NetBSD.mk | 8 +++++++-
mk/platform/README | 7 ++++++-
2 files changed, 13 insertions(+), 2 deletions(-)
diffs (43 lines):
diff -r 49ae2d3bfd15 -r 301959c3f06c mk/platform/NetBSD.mk
--- a/mk/platform/NetBSD.mk Thu Mar 03 03:33:47 2022 +0000
+++ b/mk/platform/NetBSD.mk Thu Mar 03 07:30:06 2022 +0000
@@ -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_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") || \
diff -r 49ae2d3bfd15 -r 301959c3f06c mk/platform/README
--- a/mk/platform/README Thu Mar 03 03:33:47 2022 +0000
+++ b/mk/platform/README Thu Mar 03 07:30:06 2022 +0000
@@ -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 @@
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