From nobody Tue May 14 08:39:27 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VdqXc2XzDz5KhS7; Tue, 14 May 2024 08:39:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VdqXc0dzRz54MG; Tue, 14 May 2024 08:39:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715675968; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=L/Afm8Pdu59IAuB6kn2nFi8OOe9o+YVik8XBLQM6cTY=; b=LBKQbRImcQem3Zx60nM70G6hMSfmap/5q9I1WSnMqto9Qrn55foAjkFErCZqdsgXVUeErt EilLce3lCcqKGqtPCeYMBT5BcQ8RzQYcs22+bayqqXmXtx3sFthR5RgtgpXrCl0x7LZZ1v mYn2j7NpiHmedDezIJbyiP49bbW0Eau/2gnSBiF0PybeO1NqlXg25nWwYdgYMam3LNBYWJ af8WQg5avTaM5TUM/Tv04rqUz6oEHloei1cpgA7AD/uUGG6J+hQwXzgaYBKaUptfNKqnlA PtBlcaJBoE3nyxWqMhaArvcaEAXu36wF/cgfQZ/mXnZ94AkXcmddWCb2bxcMLg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715675968; a=rsa-sha256; cv=none; b=gHrqJ8NFV7ysrd1AmTxR5zmMsF+ex/epU6BDOGVCLdJ/wE0CwNhZFktIN6iWD64OxN5YnY uErriM/xRIIOoLJ1e1XTn1JdgZI35Tqs+5wFlXS+Ag6AxIpZxej3tOxDyb6fK5bb8tJE3c 7tSABYeLDtFJzSzxTloKJBGts9hE8daHFVMtU0CG2KA4g+mM5wdRJPWypza+4MjB7rYFhA vr+BVoDaTUv6y2+l6L2nPlTFXU0WJnPy5n+n9KYU6qUyKca8YBxb3ovsc7VuLiVQKG0E/M yz/eQiMrw/mkA8Rw6i0z3KdMwFvpPq75u7MenRISyFShAg33J7gAo80vj4dG0w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715675968; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=L/Afm8Pdu59IAuB6kn2nFi8OOe9o+YVik8XBLQM6cTY=; b=OdjainceyNoHog4v70L/6ZYfH7CPVaAxWHdqmzJyhllAtIkDTwOk6zIHqKeZs9fxUIsf0l Fys30Jx3UjMdlX6bfEU+MIGG9uqrnLwwpK+VBMHYnLOJphoD4QP+aY8oDHKXSP9txeLoqy eItWz3wPnEBeHdGvhkbAAZREE9XKNCu/HcuuP541Shl3endGdPZlwZH3Ir6ISUE+HTlIn4 S1/V4Nc8eUiHjMZg7wgUHkz1DopaYZlpPJNhkBLYEf1GeoLfpuYpuE9/ryXp6ZQBzb8gdJ HJ+L28xHgPKZwEeoeoh7xaLx6geAmNVvd/FReGOQ6qZody8IjvaA7TCYVA4LYQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VdqXc0B4XzPvX; Tue, 14 May 2024 08:39:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44E8dR5F074697; Tue, 14 May 2024 08:39:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44E8dRK1074694; Tue, 14 May 2024 08:39:27 GMT (envelope-from git) Date: Tue, 14 May 2024 08:39:27 GMT Message-Id: <202405140839.44E8dRK1074694@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexander Leidinger Subject: git: b40aa9707101 - main - Mk/Features: WITH_PIE - add cmake support List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: netchild X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b40aa97071012f71a9c8937ef41d3153f070243f Auto-Submitted: auto-generated The branch main has been updated by netchild: URL: https://cgit.FreeBSD.org/ports/commit/?id=b40aa97071012f71a9c8937ef41d3153f070243f commit b40aa97071012f71a9c8937ef41d3153f070243f Author: Jan Beich AuthorDate: 2024-05-14 08:35:00 +0000 Commit: Alexander Leidinger CommitDate: 2024-05-14 08:39:24 +0000 Mk/Features: WITH_PIE - add cmake support Use cmake specific options to enable position independent code generation. This fixes several ports (at least multimedia/cmrtlib, math/blas and math/lapack) which are build with cmake when WITH_PIE is enabled. PR: 268981 Approved by: portmgr --- Mk/Features/pie.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Mk/Features/pie.mk b/Mk/Features/pie.mk index 2f7b902f2660..06174b403c31 100644 --- a/Mk/Features/pie.mk +++ b/Mk/Features/pie.mk @@ -5,11 +5,15 @@ _PIE_MK_INCLUDED= yes PIE_Include_MAINTAINER= portmgr@FreeBSD.org . if !defined(PIE_UNSAFE) +. if defined(_INCLUDE_USES_CMAKE_MK) +CMAKE_ARGS+= -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=true +. else PIE_CFLAGS?= -fPIE -fPIC CFLAGS+= ${PIE_CFLAGS} CXXFLAGS+= ${PIE_CFLAGS} LDFLAGS+= -pie STATIC_PIE_ARGS+= -static-pie +. endif . endif .endif