Don't use gold on ppc64el. It fails to build in that case (Closes: #972317)

This commit is contained in:
Sylvestre Ledru 2020-10-31 14:07:40 +01:00
parent f0b4b8baad
commit e461697a7a
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View File

@ -4,6 +4,8 @@ llvm-toolchain-9 (1:9.0.1-15) unstable; urgency=medium
feature sets a -ffile-prefix-map flag, which is only
supported in clang-10. (Closes: #972751).
Thanks to Vagrant Cascadian for the patch
* Don't use gold on ppc64el. It fails to build in that case
(Closes: #972317)
-- Sylvestre Ledru <sylvestre@debian.org> Fri, 23 Oct 2020 09:14:16 +0200

2
debian/rules vendored
View File

@ -135,7 +135,7 @@ endif
# CMAKE_EXTRA += -DLLVM_ENABLE_LLD=ON
# endif
BINUTILS_GOLD_ARCHS := amd64 arm64 armhf i386 ppc64 ppc64el x32 s390x hurd-i386 kfreebsd-amd64 kfreebsd-i386
BINUTILS_GOLD_ARCHS := amd64 arm64 armhf i386 ppc64 x32 s390x hurd-i386 kfreebsd-amd64 kfreebsd-i386
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' binutils) ge 2.23.1-1~exp3 ; echo $$?),0)
ifneq (,$(filter $(DEB_HOST_ARCH),$(BINUTILS_GOLD_ARCHS)))
# -fused-ld=gold enables the gold linker (but is not supported by all archs / distro)