mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-29 08:08:37 +00:00
[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
This commit is contained in:
parent
52c2bb7516
commit
8fcd12f526
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=347992
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user