[Pkg-chromium-commit] [pkg-chromium] 03/04: debian/rules: set host_cpu on arm64/armhf
Riku Voipio
riku at moszumanska.debian.org
Mon Dec 12 20:39:04 UTC 2016
This is an automated email from the git hooks/post-receive script.
riku pushed a commit to branch arm64
in repository pkg-chromium.
commit 531fbe1ecf4a5cf579e56bc3356912d30aa37d73
Author: Riku Voipio <riku.voipio at linaro.org>
Date: Mon Dec 12 12:07:05 2016 +0200
debian/rules: set host_cpu on arm64/armhf
---
debian/rules | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index a76d517..d968885 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,13 +15,21 @@ defines+=target_extra_ldflags=\"-Wl,--stats\"
# avoid error in v8's garbage collector (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=68853)
defines+=target_extra_cxxflags=\"-fno-delete-null-pointer-checks\"
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+
# set the appropriate cpu architecture
-ifeq (i386,$(shell dpkg-architecture -qDEB_HOST_ARCH))
+ifeq (i386,$(DEB_HOST_ARCH))
defines+=host_cpu=\"x86\"
endif
-ifeq (amd64,$(shell dpkg-architecture -qDEB_HOST_ARCH))
+ifeq (amd64,$(DEB_HOST_ARCH))
defines+=host_cpu=\"x64\"
endif
+ifeq (arm64,$(DEB_HOST_ARCH))
+defines+=host_cpu=\"arm64\"
+endif
+ifeq (armhf,$(DEB_HOST_ARCH))
+defines+=host_cpu=\"arm\"
+endif
# disabled features
defines+=is_debug=false \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-chromium/pkg-chromium.git
More information about the Pkg-chromium-commit
mailing list