mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-15 20:09:34 +00:00
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:
parent
4cd7525330
commit
ee4d16b438
10
debian/rules
vendored
10
debian/rules
vendored
@ -57,18 +57,14 @@ ifneq (,$(filter $(DEB_HOST_ARCH),s390x))
|
|||||||
LIBCXX_EXCEPTIONS :=OFF
|
LIBCXX_EXCEPTIONS :=OFF
|
||||||
endif
|
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))
|
ifneq (,$(filter $(DEB_HOST_ARCH),sparc sparc64))
|
||||||
CMAKE_EXTRA += -DLLVM_PARALLEL_LINK_JOBS=4
|
CMAKE_EXTRA += -DLLVM_PARALLEL_LINK_JOBS=4
|
||||||
endif
|
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
|
# 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
|
LDFLAGS_EXTRA += -latomic
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user