Link against libatomic on powerpc to fix FTBFS in stage2

This commit is contained in:
John Paul Adrian Glaubitz 2020-08-29 18:31:47 +02:00
parent b21ab43c62
commit b77a496e1e
2 changed files with 2 additions and 1 deletions

1
debian/changelog vendored
View File

@ -7,6 +7,7 @@ llvm-toolchain-snapshot (1:12~++20200804122259+4be13b15d69-1~exp1) UNRELEASED; u
[ John Paul Adrian Glaubitz ]
* Link against libatomic on mipsel to fix FTBFS in stage2
* Link against libatomic on powerpc to fix FTBFS in stage2
-- Sylvestre Ledru <sylvestre@debian.org> Tue, 04 Aug 2020 12:26:34 +0200

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 mipsel riscv64))
ifneq (,$(filter $(DEB_HOST_ARCH),armel mipsel powerpc riscv64))
# 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