git: 06072fa94da7 - 2021Q4 - devel/binutils: configure with --enable-new-dtags
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 20 Nov 2021 19:31:26 UTC
The branch 2021Q4 has been updated by tijl: URL: https://cgit.FreeBSD.org/ports/commit/?id=06072fa94da786cb7c20f5a3eb9e8144bcb87fa5 commit 06072fa94da786cb7c20f5a3eb9e8144bcb87fa5 Author: Tijl Coosemans <tijl@FreeBSD.org> AuthorDate: 2021-10-25 16:33:09 +0000 Commit: Tijl Coosemans <tijl@FreeBSD.org> CommitDate: 2021-11-20 19:30:02 +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) (cherry picked from commit dea411ca0ce1f3152bad6609868146f383b720c6) --- devel/binutils/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/devel/binutils/Makefile b/devel/binutils/Makefile index 9115eca8aa34..93b472d58071 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