Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id EC23C1A923A for ; Thu, 3 Mar 2022 07:30:08 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 8563D84EEB; Thu, 3 Mar 2022 07:30:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id BFE6584DBD for ; Thu, 3 Mar 2022 07:30:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id AvhNCTX-4g4Y for ; Thu, 3 Mar 2022 07:30:07 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 38DCE84C71 for ; Thu, 3 Mar 2022 07:30:07 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 2C42AFB24; Thu, 3 Mar 2022 07:30:07 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1646292607253430" MIME-Version: 1.0 Date: Thu, 3 Mar 2022 07:30:07 +0000 From: "Nia Alarie" Subject: CVS commit: pkgsrc/mk/platform To: pkgsrc-changes@NetBSD.org Reply-To: nia@netbsd.org X-Mailer: log_accum Message-Id: <20220303073007.2C42AFB24@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1646292607253430 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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. --_----------=_1646292607253430 Content-Disposition: inline Content-Length: 1695 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii 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. --_----------=_1646292607253430--