Date: Mon, 20 May 2019 16:00:32 +0000 (UTC) From: Leandro Lupori <luporl@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r347992 - head/gnu/usr.bin/binutils Message-ID: <201905201600.x4KG0WVI003962@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: luporl Date: Mon May 20 16:00:32 2019 New Revision: 347992 URL: https://svnweb.freebsd.org/changeset/base/347992 Log: [PPC] Enable build/install of ld.bfd on base When using LLVM+clang+lld on PowerPC64, ld.bfd is also needed, to link 32-bit binaries correctly, as lld support for 32-bit is still minimal. This change enables it to be built and installed when lld is used. Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D20259 Modified: head/gnu/usr.bin/binutils/Makefile Modified: head/gnu/usr.bin/binutils/Makefile ============================================================================== --- head/gnu/usr.bin/binutils/Makefile Mon May 20 15:58:44 2019 (r347991) +++ head/gnu/usr.bin/binutils/Makefile Mon May 20 16:00:32 2019 (r347992) @@ -13,7 +13,9 @@ SUBDIR.${MK_BINUTILS}+= objdump # When we use ld.lld as /usr/bin/ld, do not install the non-ifunc-capable # GNU binutils 2.17.50 ld. -.if ${MK_LLD_IS_LD} == "no" +# Except if we are on powerpc, that needs the ld from binutils to link +# 32-bit binaries. +.if ${MK_LLD_IS_LD} == "no" || ${TARGET} == "powerpc" SUBDIR.${MK_BINUTILS}+=ld .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905201600.x4KG0WVI003962>