Commit d103da92 authored by Colin Watson's avatar Colin Watson

Add cross-compiling support.

parent 83a9555f
pcmciautils (018-4) UNRELEASED; urgency=low
* Add cross-compiling support.
-- Colin Watson <cjwatson@debian.org> Fri, 16 Sep 2011 10:58:42 +0100
pcmciautils (018-3) unstable; urgency=low
* Also remove libsysfs-dev from build-deps.
......
......@@ -5,6 +5,18 @@ export V := true
%:
dh $@
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
CROSS :=
else
CROSS := CROSS=$(DEB_HOST_GNU_TYPE)-
endif
override_dh_auto_build:
$(MAKE) $(CROSS)
override_dh_auto_install:
dh_auto_install --destdir=debian/pcmciautils -- \
pcmciaconfdir=/usr/lib/pcmciautils
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment