[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 20:17:32 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239743
--- Comment #10 from Antoine Brodin <antoine at FreeBSD.org> ---
(In reply to Piotr Kubaj from comment #9)
Sure, but the ports tree is not just powerpc64 and some ports are compiled with
gcc even on amd64 or i386
Does this patch work?
%%%
LDFLAGS+= -fuse-ld=bfd
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}
. else
+BINARY_ALIAS+= ld.bfd=${LOCALBASE}/bin/ld.bfd
USE_BINUTILS= yes
. endif
. endif
%%%
The first patch you proposed (
https://bugs.freebsd.org/bugzilla/attachment.cgi?id=206395 ) was breaking ports
on amd64 / i386 / aarch64 btw.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-ports-bugs
mailing list