Skip to content

Commit

Permalink
devel/binutils: configure with --enable-new-dtags
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
TijlCoosemans committed Nov 11, 2021
1 parent 8377731 commit dea411c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion devel/binutils/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PORTNAME= binutils
PORTVERSION= 2.37
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH?= 1
CATEGORIES?= devel
MASTER_SITES= SOURCEWARE/binutils/releases
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dea411c

Please sign in to comment.