mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2026-01-04 15:17:07 +00:00
Jon Severinsson: * Automatically determine GCC_VERSION and dep:devlibs based on g++ package version.
This commit is contained in:
parent
1d19b1c9c7
commit
4ac4be9668
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -11,6 +11,7 @@ llvm-toolchain-3.3 (1:3.3-9) UNRELEASED; urgency=low
|
||||
[ Jon Severinsson ]
|
||||
* 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.
|
||||
|
||||
-- Sylvestre Ledru <sylvestre@debian.org> Mon, 26 Aug 2013 14:48:42 +0200
|
||||
|
||||
|
||||
27
debian/rules
vendored
27
debian/rules
vendored
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
TARGET_BUILD := build-llvm
|
||||
GCC_VERSION := 4.7
|
||||
GCC_VERSION := $(shell dpkg-query -W -f '$${Version}' g++ | sed -rne 's,^([0-9]+:)?([0-9]+\.[0-9]+).*$$,\2,p')
|
||||
LLVM_VERSION := 3.3
|
||||
SONAME_EXT := 1
|
||||
DEBIAN_REVISION := $(shell dpkg-parsechangelog | sed -rne 's,^Version: .*-(.*),\1,p')
|
||||
@ -24,6 +24,9 @@ ifeq ($(distrel),n/a)
|
||||
distrel := sid
|
||||
endif
|
||||
|
||||
export CC=gcc-$(GCC_VERSION)
|
||||
export CXX=g++-$(GCC_VERSION)
|
||||
|
||||
LDFLAGS_EXTRA=
|
||||
CXXFLAGS_EXTRA=
|
||||
|
||||
@ -44,24 +47,12 @@ ifneq (,$(findstring $(DEB_HOST_ARCH),armel))
|
||||
opt_flags += -marm
|
||||
endif
|
||||
|
||||
ifeq ($(distribution),Ubuntu)
|
||||
ifeq ($(distrel),precise)
|
||||
control_vars = '-Vdep:devlibs=libstdc++6-4.6-dev'
|
||||
endif
|
||||
ifeq ($(distrel),quantal)
|
||||
control_vars = '-Vdep:devlibs=libstdc++6-4.7-dev'
|
||||
endif
|
||||
ifeq ($(distrel),raring)
|
||||
control_vars = '-Vdep:devlibs=libstdc++6-4.7-dev, libgcc-4.7-dev, libobjc-4.7-dev'
|
||||
endif
|
||||
|
||||
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' g++-$(GCC_VERSION)) ge 4.8-20121128-1~ ; echo $$?),0)
|
||||
control_vars = '-Vdep:devlibs=libstdc++-$(GCC_VERSION)-dev, libgcc-$(GCC_VERSION)-dev, libobjc-$(GCC_VERSION)-dev'
|
||||
else ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' g++-$(GCC_VERSION)) ge 4.7.2-10~ ; echo $$?),0)
|
||||
control_vars = '-Vdep:devlibs=libstdc++6-$(GCC_VERSION)-dev, libgcc-$(GCC_VERSION)-dev, libobjc-$(GCC_VERSION)-dev'
|
||||
else
|
||||
ifeq ($(distrel),wheezy)
|
||||
control_vars = '-Vdep:devlibs=libstdc++6-4.7-dev'
|
||||
else
|
||||
# Debian experimental
|
||||
control_vars = '-Vdep:devlibs=libstdc++6-4.7-dev, libgcc-4.7-dev, libobjc-4.7-dev'
|
||||
endif
|
||||
control_vars = '-Vdep:devlibs=libstdc++6-$(GCC_VERSION)-dev'
|
||||
endif
|
||||
|
||||
BINUTILS_GOLD_ARCHS := amd64 armhf i386 powerpc powerpcspe ppc64 sparc sparc64 x32
|
||||
|
||||
Loading…
Reference in New Issue
Block a user