[Bug 239743] Mk/bsd.port.mk: don't switch to ld.bfd on powerpc64 with clang

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Aug 9 19:13:35 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239743

--- Comment #7 from Piotr Kubaj <pkubaj at FreeBSD.org> ---
(In reply to Antoine Brodin from comment #3)
This patch is ok and much simpler:
Index: Mk/bsd.port.mk
===================================================================
--- Mk/bsd.port.mk      (revision 508433)
+++ Mk/bsd.port.mk      (working copy)
@@ -1820,10 +1820,10 @@
 .endif

 .if defined(LLD_UNSAFE) && ${/usr/bin/ld:L:tA} == /usr/bin/ld.lld
-LDFLAGS+=      -fuse-ld=bfd
+LDFLAGS+=      -fuse-ld=${LD}
 BINARY_ALIAS+= ld=${LD}
 .  if !defined(USE_BINUTILS)
-.    if exists(/usr/bin/ld.bfd)
+.    if exists(/usr/bin/ld.bfd) && (${ARCH} != powerpc64 || ${OSVERSION} <
1300038)
 LD=    /usr/bin/ld.bfd
 CONFIGURE_ENV+=        LD=${LD}
 MAKE_ENV+=     LD=${LD}

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ports-bugs mailing list