Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Aug 2019 20:17:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 239743] Mk/bsd.port.mk: don't switch to ld.bfd on powerpc64 with clang
Message-ID:  <bug-239743-7788-9IVAiHweHK@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-239743-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-239743-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239743

--- Comment #10 from Antoine Brodin <antoine@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+=3D      -fuse-ld=3Dbfd
 BINARY_ALIAS+=3D ld=3D${LD}
 .  if !defined(USE_BINUTILS)
-.    if exists(/usr/bin/ld.bfd)
+.    if exists(/usr/bin/ld.bfd) && (${ARCH} !=3D powerpc64 || ${OSVERSION}=
 <
1300038)
 LD=3D    /usr/bin/ld.bfd
 CONFIGURE_ENV+=3D        LD=3D${LD}
 MAKE_ENV+=3D     LD=3D${LD}
 .    else
+BINARY_ALIAS+=3D ld.bfd=3D${LOCALBASE}/bin/ld.bfd
 USE_BINUTILS=3D  yes
 .    endif
 .  endif
%%%

The first patch you proposed (
https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D206395 ) was breaking=
 ports
on amd64 / i386 / aarch64 btw.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-239743-7788-9IVAiHweHK>