summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLeandro Lupori <luporl@FreeBSD.org>2019-05-20 16:00:32 +0000
committerLeandro Lupori <luporl@FreeBSD.org>2019-05-20 16:00:32 +0000
commit8fcd12f5269265ed3bdf44a3388536e38ddf1ec5 (patch)
tree47ff7122ddb693e7eb3fe202edad261ce140f97e /gnu
parent52c2bb75163559a6e2866ad374a7de67a4ea1273 (diff)
downloadsrc-test-8fcd12f5269265ed3bdf44a3388536e38ddf1ec5.tar.gz
src-test-8fcd12f5269265ed3bdf44a3388536e38ddf1ec5.zip
[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
Notes
Notes: svn path=/head/; revision=347992
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/binutils/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/Makefile b/gnu/usr.bin/binutils/Makefile
index 619454250ed84..5493e2f12681f 100644
--- a/gnu/usr.bin/binutils/Makefile
+++ b/gnu/usr.bin/binutils/Makefile
@@ -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