diff --git a/debian/changelog b/debian/changelog index 92d823e7..ca861ea1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ llvm-toolchain-7 (1:7-7~exp2) experimental; urgency=medium * clangd-atomic-cmake.patch: Link against atomic for clangd in i386 * When the cmake configure of the stage2 is failing, dump the cmake error log + * Declare some variables (-Wno-*) for all platforms (was failing on mips) -- Sylvestre Ledru Fri, 19 Oct 2018 11:17:16 +0200 diff --git a/debian/rules b/debian/rules index 958287ee..13abd20a 100755 --- a/debian/rules +++ b/debian/rules @@ -99,15 +99,20 @@ BINUTILS_GOLD_ARCHS := amd64 arm64 armhf i386 ppc64 ppc64el sparc sparc64 x32 s3 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) - LDFLAGS_EXTRA += -fuse-ld=gold -fPIC -Wno-unused-command-line-argument -Wno-unknown-warning-option + LDFLAGS_EXTRA += -fuse-ld=gold #--no-keep-files-mapped --no-map-whole-files - CXXFLAGS_EXTRA += -fuse-ld=gold -fPIC -Wno-unused-command-line-argument -Wno-unknown-warning-option - CFLAGS_EXTRA += -fuse-ld=gold -fPIC -Wno-unused-command-line-argument -Wno-unknown-warning-option + CXXFLAGS_EXTRA += -fuse-ld=gold + CFLAGS_EXTRA += -fuse-ld=gold #-Wl,--no-keep-files-mapped -Wl,--no-map-whole-files CMAKE_EXTRA += -DLLVM_BINUTILS_INCDIR=/usr/include/ endif endif +# Enable for bootstrap +LDFLAGS_EXTRA += -fPIC -Wno-unused-command-line-argument -Wno-unknown-warning-option +CXXFLAGS_EXTRA += -fPIC -Wno-unused-command-line-argument -Wno-unknown-warning-option +CFLAGS_EXTRA += -fPIC -Wno-unused-command-line-argument -Wno-unknown-warning-option + # Enable polly (or not) POLLY_ENABLE=yes ifneq (,$(filter $(DEB_HOST_ARCH), powerpc powerpcspe))