Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157207314
D12064.id32325.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
699 B
Referenced Files
None
Subscribers
None
D12064.id32325.diff
View Options
Index: head/Mk/bsd.port.mk
===================================================================
--- head/Mk/bsd.port.mk
+++ head/Mk/bsd.port.mk
@@ -1737,6 +1737,20 @@
.include "${PORTSDIR}/Mk/bsd.gcc.mk"
.endif
+_TEST_LD=/usr/bin/ld
+.if defined(LLD_UNSAFE) && ${_TEST_LD:tA} == "/usr/bin/ld.lld"
+LDFLAGS+= -fuse-ld=bfd
+. if !defined(USE_BINUTILS)
+. if exists(/usr/bin/ld.bfd)
+LD= /usr/bin/ld.bfd
+CONFIGURE_ENV+= LD=${LD}
+MAKE_ENV+= LD=${LD}
+. else
+USE_BINUTILS= yes
+. endif
+. endif
+.endif
+
.if defined(USE_BINUTILS) && !defined(DISABLE_BINUTILS)
BUILD_DEPENDS+= ${LOCALBASE}/bin/as:devel/binutils
BINUTILS?= ADDR2LINE AR AS CPPFILT GPROF LD NM OBJCOPY OBJDUMP RANLIB \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, May 20, 8:24 AM (8 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33341173
Default Alt Text
D12064.id32325.diff (699 B)
Attached To
Mode
D12064: Add LLD_UNSAFE to force use of ld.bfd when ld is lld
Attached
Detach File
Event Timeline
Log In to Comment