consolidate two conditionals for libatomic that were essentially

the same, but the one removed could conflict with
BOOTSTRAP_SHARED_LINK_FLAGS elsewhere in the rules file
This commit is contained in:
Erik Maciejewski 2021-10-15 20:42:47 -07:00 committed by Sylvestre Ledru
parent 4cd7525330
commit ee4d16b438

10
debian/rules vendored
View File

@ -57,18 +57,14 @@ ifneq (,$(filter $(DEB_HOST_ARCH),s390x))
LIBCXX_EXCEPTIONS :=OFF
endif
ifneq (,$(filter $(DEB_HOST_ARCH),i386 armel mips mipsel powerpc powerpcspe riscv64))
CMAKE_EXTRA += -DCMAKE_SHARED_LINKER_FLAGS="-latomic"
STAGE1_CMAKE_EXTRA += -DCMAKE_SHARED_LINKER_FLAGS="-latomic"
endif
ifneq (,$(filter $(DEB_HOST_ARCH),sparc sparc64))
CMAKE_EXTRA += -DLLVM_PARALLEL_LINK_JOBS=4
endif
ifneq (,$(filter $(DEB_HOST_ARCH),armel mipsel powerpc riscv64))
ifneq (,$(filter $(DEB_HOST_ARCH),i386 armel mips mipsel powerpc powerpcspe 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.
# itself. The atomic detection is failing on armel and riscv64. Forcing the inclusion
# everywhere and in all stages
LDFLAGS_EXTRA += -latomic
endif