For i386, gcc 4.9 updated its paths to i586-linux-gnu (i486-linux-gnu

previously). Adding this triple to the list of search (Closes: #754963)
This commit is contained in:
Sylvestre Ledru 2014-07-21 09:21:22 +00:00
parent 87b9a0ec51
commit 492a8fe537
4 changed files with 32 additions and 6 deletions

12
debian/changelog vendored
View File

@ -1,8 +1,16 @@
llvm-toolchain-3.4 (1:3.4.2-5) UNRELEASED; urgency=medium
llvm-toolchain-3.4 (1:3.4.2-6) UNRELEASED; urgency=medium
* If the version of gcc is too old, force the usage of gcc 4.8
-- Sylvestre Ledru <sylvestre@debian.org> Mon, 21 Jul 2014 11:21:01 +0200
llvm-toolchain-3.4 (1:3.4.2-5) unstable; urgency=medium
* For i386, gcc 4.9 updated its paths to i586-linux-gnu (i486-linux-gnu
previously). Adding this triple to the list of search (Closes: #754963)
* Clang will now show the full version. Example: 3.5.0-svn213052-1~exp1
--
-- Sylvestre Ledru <sylvestre@debian.org> Fri, 18 Jul 2014 17:50:51 +0200
llvm-toolchain-3.4 (1:3.4.2-4) unstable; urgency=medium

View File

@ -0,0 +1,13 @@
Index: llvm-toolchain-3.4-3.4.2/clang/lib/Driver/ToolChains.cpp
===================================================================
--- llvm-toolchain-3.4-3.4.2.orig/clang/lib/Driver/ToolChains.cpp
+++ llvm-toolchain-3.4-3.4.2/clang/lib/Driver/ToolChains.cpp
@@ -1131,7 +1131,7 @@ void Generic_GCC::GCCInstallationDetecto
"i686-linux-gnu", "i686-pc-linux-gnu", "i486-linux-gnu", "i386-linux-gnu",
"i386-redhat-linux6E", "i686-redhat-linux", "i586-redhat-linux",
"i386-redhat-linux", "i586-suse-linux", "i486-slackware-linux",
- "i686-montavista-linux"
+ "i686-montavista-linux", "i586-linux-gnu"
};
static const char *const MIPSLibDirs[] = { "/lib" };

View File

@ -29,7 +29,6 @@ silent-swig-warning.diff
silent-MCJIIT-tests.diff
include-target.diff
debian-mips64-n32-multiarch.diff
force-gcc-header-obj.diff
do-not-fail-on-unexpected-pass.diff
fix-an-issue-in-chroot-witout-proc.diff
@ -42,4 +41,4 @@ lldb-soname.diff
CVE-2014-2893.diff
follow-parallel-var.diff
scan-build-search-path.diff
gcc-4.9-i586-linux-gnu.diff

10
debian/rules vendored
View File

@ -22,8 +22,6 @@ DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
OCAML_STDLIB_DIR ?= $(shell ocamlc -where)
export CC=gcc-$(GCC_VERSION)
export CXX=g++-$(GCC_VERSION)
LDFLAGS_EXTRA=
CXXFLAGS_EXTRA=
@ -33,6 +31,14 @@ ifneq (,$(filter $(DEB_HOST_ARCH),powerpc powerpcspe))
LDFLAGS_EXTRA += -latomic
endif
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' g++-$(GCC_VERSION)) lt 4.7.2-10~ ; echo $$?),0)
# Too old version of gcc. Force 4.8
GCC_VERSION := 4.8
endif
export CC=gcc-$(GCC_VERSION)
export CXX=g++-$(GCC_VERSION)
confargs := \
--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)