mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-31 10:46:16 +00:00
Use BINARY_ALIAS to make LLD_UNSAFE more widely applicable
Some ports do not honour $LD or -fuse-ld=bfd in $CFLAGS, but do invoke ld via $PATH. Automatically set BINARY_ALIAS+=ld=${LD} when LLD_UNSAFE is active to use ld.bfd for these ports. Approved by: portmgr (antoine) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D14876
This commit is contained in:
parent
9215977220
commit
73ca9e7230
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=465900
@ -1844,6 +1844,7 @@ PKG_DEPENDS+= ${LOCALBASE}/sbin/pkg:${PKG_ORIGIN}
|
||||
|
||||
.if defined(LLD_UNSAFE) && ${/usr/bin/ld:L:tA} == /usr/bin/ld.lld
|
||||
LDFLAGS+= -fuse-ld=bfd
|
||||
BINARY_ALIAS+= ld=${LD}
|
||||
. if !defined(USE_BINUTILS)
|
||||
. if exists(/usr/bin/ld.bfd)
|
||||
LD= /usr/bin/ld.bfd
|
||||
|
@ -14,9 +14,7 @@ COMMENT= ANSI Generic Data Structures Library
|
||||
LICENSE= BSD4CLAUSE
|
||||
|
||||
USE_LDCONFIG= yes
|
||||
# Requires directly-invoked linker to provide library search paths.
|
||||
LLD_UNSAFE= yes
|
||||
BINARY_ALIAS= ld=ld.bfd
|
||||
LLD_UNSAFE= yes # Needs linker to provide library search paths.
|
||||
ALL_TARGET= gcc
|
||||
|
||||
HTML= avltree.html heap.html parray.html set.html \
|
||||
|
@ -18,9 +18,7 @@ USE_LDCONFIG= yes
|
||||
USE_XORG= x11 xext sm ice xt xaw xmu xpm
|
||||
GNU_CONFIGURE= yes
|
||||
MAKE_JOBS_UNSAFE=yes
|
||||
# Requires directly-invoked linker to provide library search paths.
|
||||
LLD_UNSAFE= yes
|
||||
BINARY_ALIAS= ld=ld.bfd
|
||||
LLD_UNSAFE= yes # Needs linker to provide library search paths.
|
||||
|
||||
WRKSRC_SUBDIR= x11
|
||||
|
||||
|
@ -21,7 +21,6 @@ USES= gmake tcl:tea
|
||||
USE_LDCONFIG= yes
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME:S/_src$//}
|
||||
LLD_UNSAFE= yes
|
||||
BINARY_ALIAS= ld=ld.bfd
|
||||
|
||||
INFO= ${PORTNAME} ${PORTNAME}-zlib
|
||||
|
||||
|
@ -26,7 +26,6 @@ GH_TAGNAME= 2bf3950
|
||||
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
LLD_UNSAFE= yes
|
||||
BINARY_ALIAS= ld=ld.bfd
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
|
@ -22,7 +22,6 @@ CONFIGURE_ARGS+=--with-tcllib=${LOCALBASE}/lib/libtcl${TCL_SHLIB_VER}.so \
|
||||
--with-tclinc=${LOCALBASE}/include/tcl${TCL_VER}/tcl.h
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
LLD_UNSAFE= yes
|
||||
BINARY_ALIAS= ld=ld.bfd
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
PORTDOCS= *
|
||||
|
@ -18,9 +18,8 @@ USES= gmake tcl
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS+=--with-tcllib=${LOCALBASE}/lib/libtcl${TCL_SHLIB_VER}.so \
|
||||
--with-tclinc=${TCL_INCLUDEDIR}/tcl.h
|
||||
# Requires directly-invoked linker to provide library search paths.
|
||||
LLD_UNSAFE= yes # Needs linker to provide library search paths.
|
||||
LLD_UNSAFE= yes
|
||||
BINARY_ALIAS= ld=ld.bfd
|
||||
|
||||
PLIST_FILES= bin/evangeline
|
||||
|
||||
|
@ -24,7 +24,6 @@ JAVA_VERSION= 1.6+
|
||||
JAVA_VENDOR= openjdk
|
||||
USE_ANT= yes
|
||||
LLD_UNSAFE= yes
|
||||
BINARY_ALIAS= ld=ld.bfd
|
||||
|
||||
PLIST_SUB+= JAVA_HOME=${JAVA_HOME:S/^${PREFIX}\///} ARCH=${ARCH}
|
||||
|
||||
|
@ -20,9 +20,8 @@ CONFIGURE_ARGS= --prefix "${PREFIX}"
|
||||
TEST_TARGET= check
|
||||
WRKSRC= ${WRKDIR}/mc
|
||||
|
||||
# Myrddin is LLD_UNSAFE:
|
||||
# ld: error: <internal>: section sh_addralign is not a power of 2
|
||||
BINARY_ALIAS= ld=ld.bfd
|
||||
LLD_UNSAFE= yes
|
||||
|
||||
OPTIONS_DEFINE= DEBUG VIM
|
||||
OPTIONS_DEFAULT= VIM
|
||||
|
@ -25,7 +25,6 @@ CONFIGURE_ARGS= o all
|
||||
NO_BUILD= yes
|
||||
USE_LDCONFIG= yes
|
||||
LLD_UNSAFE= yes
|
||||
BINARY_ALIAS= ld=ld.bfd
|
||||
|
||||
DOCFILES= rexx.info rexx.ref rexx.summary rexx.tech
|
||||
RMEFILES= README README.Y2K README.bugreport README.docs \
|
||||
|
@ -20,7 +20,6 @@ LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
||||
|
||||
ONLY_FOR_ARCHS= i386 amd64
|
||||
LLD_UNSAFE= yes
|
||||
BINARY_ALIAS= ld=ld.bfd
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
|
||||
|
@ -25,7 +25,6 @@ PLIST_SUB= TCLX_VER=${PORTVERSION:R}
|
||||
ALL_TARGET= binaries libraries
|
||||
INSTALL_TARGET= install-binaries install-libraries
|
||||
LLD_UNSAFE= yes
|
||||
BINARY_ALIAS= ld=ld.bfd
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
|
@ -18,7 +18,6 @@ USES= gmake jpeg localbase pkgconfig
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= x42
|
||||
LLD_UNSAFE= yes
|
||||
BINARY_ALIAS= ld=ld.bfd
|
||||
|
||||
MAKE_JOBS_UNSAFE= yes # https://github.com/x42/harvid/issues/5
|
||||
|
||||
|
@ -29,7 +29,6 @@ USES= cmake compiler:c11 desktop-file-utils localbase:ldflags openal:al \
|
||||
pkgconfig
|
||||
USE_XORG= x11 xext xrender
|
||||
LLD_UNSAFE= yes
|
||||
BINARY_ALIAS= ld=ld.bfd
|
||||
|
||||
OPTIONS_DEFINE= DBUS
|
||||
OPTIONS_DEFAULT= DBUS
|
||||
|
@ -34,7 +34,6 @@ GH_ACCOUNT= monero-project
|
||||
GH_PROJECT= monero
|
||||
CFLAGS+= -D_WANT_SEMUN
|
||||
LLD_UNSAFE= yes
|
||||
BINARY_ALIAS= ld=ld.bfd
|
||||
|
||||
OPTIONS_DEFINE= DOXYGEN
|
||||
DOXYGEN_BUILD_DEPENDS= dot:graphics/graphviz \
|
||||
|
@ -18,7 +18,6 @@ GH_TAGNAME= v1.4:libbloom
|
||||
|
||||
USES= gmake ssl sqlite:3
|
||||
LLD_UNSAFE= yes
|
||||
BINARY_ALIAS= ld=ld.bfd
|
||||
|
||||
PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
|
||||
|
||||
|
@ -14,9 +14,7 @@ LICENSE= GPLv2+
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
USE_LDCONFIG= yes
|
||||
# Requires directly-invoked linker to provide library search paths.
|
||||
LLD_UNSAFE= yes
|
||||
BINARY_ALIAS= ld=ld.bfd
|
||||
LLD_UNSAFE= yes # Needs linker to provide library search paths.
|
||||
|
||||
PLIST_FILES= bin/installwatch lib/installwatch.so
|
||||
PORTDOCS= BUGS CHANGELOG README TODO
|
||||
|
@ -16,7 +16,6 @@ GNU_CONFIGURE= yes
|
||||
USES= desthack gmake webplugin:native
|
||||
USE_XORG= x11 xt
|
||||
LLD_UNSAFE= yes
|
||||
BINARY_ALIAS= ld=ld.bfd
|
||||
|
||||
WEBPLUGIN_FILES=mozplugger.so
|
||||
MAKE_ENV= WEBPLUGINS_DIR="${WEBPLUGIN_DIR}"
|
||||
|
Loading…
Reference in New Issue
Block a user