Also link against -latomic on mipsel to fix /usr/[...]/atomic_base.h:426: undefined reference to `__atomic_load_8' for lld to fix the FTBFS

This commit is contained in:
Sylvestre Ledru 2020-08-25 13:08:03 +02:00
parent 21abd3c8ca
commit 4231fb08b7
2 changed files with 8 additions and 2 deletions

8
debian/changelog vendored
View File

@ -1,9 +1,15 @@
llvm-toolchain-11 (1:11.0.0~+rc2-2) UNRELEASED; urgency=medium
[ Gianfranco Costamagna ]
* Disable ocaml support on i386, not reasonable to support it there
(specially for Ubuntu)
-- Gianfranco Costamagna <locutusofborg@debian.org> Mon, 24 Aug 2020 09:19:14 +0200
[ Sylvestre Ledru ]
* Also link against -latomic on mipsel to fix
/usr/[...]/atomic_base.h:426: undefined reference to `__atomic_load_8'
for lld to fix the FTBFS
-- Sylvestre Ledru <sylvestre@debian.org> Tue, 25 Aug 2020 10:44:00 +0200
llvm-toolchain-11 (1:11.0.0~+rc2-1) unstable; urgency=medium

2
debian/rules vendored
View File

@ -53,7 +53,7 @@ ifneq (,$(filter $(DEB_HOST_ARCH),i386 armel mips mipsel powerpc powerpcspe risc
CMAKE_EXTRA += -DLIBOMP_LIBFLAGS="-latomic" -DCMAKE_SHARED_LINKER_FLAGS="-latomic"
endif
ifneq (,$(filter $(DEB_HOST_ARCH),armel riscv64))
ifneq (,$(filter $(DEB_HOST_ARCH),armel riscv64 mipsel))
# For some reason, in the stage2 build, when clang is used to compile
# itself. The atomic detection is failing on armel and riscv64. Forcing the inclusion everywhere.
LDFLAGS_EXTRA += -latomic