summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorLisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>2017-09-18 16:55:31 -0300
committerLisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>2017-09-18 16:55:31 -0300
commit0fce23aadfe9dc4b93c7600799c9722888e2e3bc (patch)
tree75b015d85a1d043e387dda5e4fe1219ffebd4181 /debian/rules
parent457ce0d685ec948fd1502c89030625a4a8f029dd (diff)
downloadqtbase-0fce23aadfe9dc4b93c7600799c9722888e2e3bc.tar.gz
Use predefined DEB_HOST_* variables.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules7
1 files changed, 2 insertions, 5 deletions
diff --git a/debian/rules b/debian/rules
index da83611..5bc3797 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,11 +3,8 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
-DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
-DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
-DEB_HOST_ARCH_BITS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_BITS)
-DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
+# Use already defined DEB_HOST_* variables.
+include /usr/share/dpkg/architecture.mk
export PATH := $(PATH):$(shell pwd)/bin
export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) $(shell getconf LFS_CFLAGS)