mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-08-08 09:30:22 +00:00
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:
parent
87b9a0ec51
commit
492a8fe537
12
debian/changelog
vendored
12
debian/changelog
vendored
@ -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
|
* 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
|
llvm-toolchain-3.4 (1:3.4.2-4) unstable; urgency=medium
|
||||||
|
|
||||||
|
13
debian/patches/gcc-4.9-i586-linux-gnu.diff
vendored
Normal file
13
debian/patches/gcc-4.9-i586-linux-gnu.diff
vendored
Normal 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" };
|
3
debian/patches/series
vendored
3
debian/patches/series
vendored
@ -29,7 +29,6 @@ silent-swig-warning.diff
|
|||||||
silent-MCJIIT-tests.diff
|
silent-MCJIIT-tests.diff
|
||||||
include-target.diff
|
include-target.diff
|
||||||
debian-mips64-n32-multiarch.diff
|
debian-mips64-n32-multiarch.diff
|
||||||
|
|
||||||
force-gcc-header-obj.diff
|
force-gcc-header-obj.diff
|
||||||
do-not-fail-on-unexpected-pass.diff
|
do-not-fail-on-unexpected-pass.diff
|
||||||
fix-an-issue-in-chroot-witout-proc.diff
|
fix-an-issue-in-chroot-witout-proc.diff
|
||||||
@ -42,4 +41,4 @@ lldb-soname.diff
|
|||||||
CVE-2014-2893.diff
|
CVE-2014-2893.diff
|
||||||
follow-parallel-var.diff
|
follow-parallel-var.diff
|
||||||
scan-build-search-path.diff
|
scan-build-search-path.diff
|
||||||
|
gcc-4.9-i586-linux-gnu.diff
|
||||||
|
10
debian/rules
vendored
10
debian/rules
vendored
@ -22,8 +22,6 @@ DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
|
|||||||
|
|
||||||
OCAML_STDLIB_DIR ?= $(shell ocamlc -where)
|
OCAML_STDLIB_DIR ?= $(shell ocamlc -where)
|
||||||
|
|
||||||
export CC=gcc-$(GCC_VERSION)
|
|
||||||
export CXX=g++-$(GCC_VERSION)
|
|
||||||
|
|
||||||
LDFLAGS_EXTRA=
|
LDFLAGS_EXTRA=
|
||||||
CXXFLAGS_EXTRA=
|
CXXFLAGS_EXTRA=
|
||||||
@ -33,6 +31,14 @@ ifneq (,$(filter $(DEB_HOST_ARCH),powerpc powerpcspe))
|
|||||||
LDFLAGS_EXTRA += -latomic
|
LDFLAGS_EXTRA += -latomic
|
||||||
endif
|
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 := \
|
confargs := \
|
||||||
--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
|
--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user