From d4136d0af8b97df71ec77145d12104f94b2d15a3 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 8 Aug 2016 16:53:25 +0000 Subject: [PATCH] Bring back the lto (gone with the cmake migration) (Closes: #819333) (upstream: #27223) --- debian/changelog | 2 ++ debian/clang-format-X.Y.manpages.in | 1 + debian/rules | 1 + 3 files changed, 4 insertions(+) diff --git a/debian/changelog b/debian/changelog index ccd39281..164f96fb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,8 @@ llvm-toolchain-snapshot (1:4.0~svn275970-1~exp2) experimental; urgency=medium * Sync the 3.9 changes into 4.0 * Fix the cmake paths in llvm-4.0-dev deb package. Thanks to Brad King for the patch (Closes: #819072) + * Bring back the lto (gone with the cmake migration) + (Closes: #819333) (upstream: #27223) * LLVMConfig.cmake is now installed to /lib/cmake/llvm instead of /share/llvm/cmake Thanks to Brad King of the fix diff --git a/debian/clang-format-X.Y.manpages.in b/debian/clang-format-X.Y.manpages.in index 486b909d..db4dd8f7 100644 --- a/debian/clang-format-X.Y.manpages.in +++ b/debian/clang-format-X.Y.manpages.in @@ -1,2 +1,3 @@ debian/man/clang-format-diff-@LLVM_VERSION@.1 debian/man/clang-format-@LLVM_VERSION@.1 + diff --git a/debian/rules b/debian/rules index 19c2c287..8ea47037 100755 --- a/debian/rules +++ b/debian/rules @@ -63,6 +63,7 @@ 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 CXXFLAGS_EXTRA += -Wl,-fuse-ld=gold + CMAKE_EXTRA += -DLLVM_BINUTILS_INCDIR=/usr/include/ endif endif