From nobody Thu Nov 11 21:19:09 2021 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 6FD68185E622; Thu, 11 Nov 2021 21:19:09 +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 4HqvjT2lbhz56mw; Thu, 11 Nov 2021 21:19:09 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 3F6911342C; Thu, 11 Nov 2021 21:19:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1ABLJ9TJ097850; Thu, 11 Nov 2021 21:19:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ABLJ9I0097849; Thu, 11 Nov 2021 21:19:09 GMT (envelope-from git) Date: Thu, 11 Nov 2021 21:19:09 GMT Message-Id: <202111112119.1ABLJ9I0097849@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Tijl Coosemans Subject: git: dea411ca0ce1 - main - devel/binutils: configure with --enable-new-dtags 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: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tijl X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dea411ca0ce1f3152bad6609868146f383b720c6 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tijl: URL: https://cgit.FreeBSD.org/ports/commit/?id=dea411ca0ce1f3152bad6609868146f383b720c6 commit dea411ca0ce1f3152bad6609868146f383b720c6 Author: Tijl Coosemans AuthorDate: 2021-10-25 16:33:09 +0000 Commit: Tijl Coosemans CommitDate: 2021-11-11 21:18:12 +0000 devel/binutils: configure with --enable-new-dtags This makes binutils ld use DT_RUNPATH instead of DT_RPATH by default for FreeBSD targets and brings it in line with LLVM ld. The difference between the two is that DT_RUNPATH has a lower priority than the LD_LIBRARY_PATH environment variable. This variable is used by libtool to override DT_RUNPATH when running programs directly from the build directory (e.g. during make test). PR: 259446 Approved by: maintainer timeout (2 weeks) --- devel/binutils/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/devel/binutils/Makefile b/devel/binutils/Makefile index 31280c3fa4ed..82f627387301 100644 --- a/devel/binutils/Makefile +++ b/devel/binutils/Makefile @@ -2,7 +2,7 @@ PORTNAME= binutils PORTVERSION= 2.37 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH?= 1 CATEGORIES?= devel MASTER_SITES= SOURCEWARE/binutils/releases @@ -115,6 +115,11 @@ PLIST_SUB+= GOLD="" PLIST_SUB+= GOLD="@comment " .endif +.if (${FLAVOR} == native && ${OPSYS} == FreeBSD) || \ + (${FLAVOR} != native && ${BUTARGET:M*freebsd*}) +CONFIGURE_ARGS+= --enable-new-dtags +.endif + .if ${ARCH} == amd64 CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL} .elif ${ARCH} == powerpcspe