mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-08-13 22:16:33 +00:00
Jon Severinsson: Automatically determine if -fuse-ld=gold is supported based on binutils package version
This commit is contained in:
parent
4ac4be9668
commit
128450efaf
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -12,6 +12,7 @@ llvm-toolchain-3.3 (1:3.3-9) UNRELEASED; urgency=low
|
||||
* Merge from llvm-toolchain-3.2 branch up to 3.2repack-11.
|
||||
* Drop auto-generated file debian/libllvm3.3.install.
|
||||
* Automatically determine GCC_VERSION and dep:devlibs based on g++ package version.
|
||||
* Automatically determine if -fuse-ld=gold is supported based on binutils package version.
|
||||
|
||||
-- Sylvestre Ledru <sylvestre@debian.org> Mon, 26 Aug 2013 14:48:42 +0200
|
||||
|
||||
|
4
debian/control
vendored
4
debian/control
vendored
@ -8,8 +8,8 @@ Build-Depends: debhelper (>= 9.0), flex, bison, dejagnu, tcl8.5, expect,
|
||||
sharutils, autotools-dev (>= 20060702.1), libffi-dev (>= 3.0.9),
|
||||
lsb-release, patchutils, diffstat, xz-utils, chrpath, python-dev,
|
||||
libedit-dev, swig, python-sphinx, ocaml-nox, binutils-dev, libcloog-isl-dev,
|
||||
libisl-dev (>= 0.11.1), binutils (>= 2.23.52.20130522),
|
||||
lcov, procps, help2man, libjsoncpp-dev
|
||||
libisl-dev (>= 0.11.1), libjsoncpp-dev,
|
||||
lcov, procps, help2man
|
||||
Build-Conflicts: oprofile, ocaml
|
||||
Standards-Version: 3.9.4
|
||||
Homepage: http://www.llvm.org/
|
||||
|
9
debian/rules
vendored
9
debian/rules
vendored
@ -18,12 +18,6 @@ DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
|
||||
|
||||
OCAML_STDLIB_DIR ?= $(shell ocamlc -where)
|
||||
|
||||
distribution := $(shell lsb_release --id --short)
|
||||
distrel := $(shell lsb_release --codename --short)
|
||||
ifeq ($(distrel),n/a)
|
||||
distrel := sid
|
||||
endif
|
||||
|
||||
export CC=gcc-$(GCC_VERSION)
|
||||
export CXX=g++-$(GCC_VERSION)
|
||||
|
||||
@ -56,9 +50,8 @@ else
|
||||
endif
|
||||
|
||||
BINUTILS_GOLD_ARCHS := amd64 armhf i386 powerpc powerpcspe ppc64 sparc sparc64 x32
|
||||
BINUTILS_GOLD_UNSUPPORTED_DISTRO = wheezy quantal
|
||||
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' binutils) ge 2.23.1-1~exp3 ; echo $$?),0)
|
||||
ifneq (,$(findstring $(DEB_HOST_ARCH),$(BINUTILS_GOLD_ARCHS)))
|
||||
ifeq (,$(findstring $(distrel),$(BINUTILS_GOLD_UNSUPPORTED_DISTRO)))
|
||||
# -fused-ld=gold enables the gold linker (but is not supported by all archs / distro)
|
||||
LDFLAGS_EXTRA += -fuse-ld=gold
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user