Bug#695021: rtmpdump: fails to cross-build: need to set CROSS_COMPILE
Colin Watson
cjwatson at ubuntu.com
Mon Dec 3 12:33:26 UTC 2012
Package: rtmpdump
Version: 2.4+20111222.git4e06e21-1
Severity: normal
Tags: patch
User: crossbuild at debian.org
Usertags: cross
rtmpdump fails to cross-build because it uses the native compiler, but
upstream supports cross-building so it's really easy to fix this by
adding another item to MAKEVARS. Here's a patch.
* Use correct toolchain when cross-building.
diff -Nru rtmpdump-2.4+20111222.git4e06e21/debian/rules rtmpdump-2.4+20111222.git4e06e21/debian/rules
--- rtmpdump-2.4+20111222.git4e06e21/debian/rules 2012-01-08 11:17:17.000000000 +0000
+++ rtmpdump-2.4+20111222.git4e06e21/debian/rules 2012-12-03 12:27:30.000000000 +0000
@@ -7,6 +7,12 @@
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
MAKEVARS=prefix=/usr CRYPTO=GNUTLS libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+ MAKEVARS += CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)-
+endif
+
override_dh_auto_build:
dh_auto_build -- $(MAKEVARS)
Thanks,
--
Colin Watson [cjwatson at ubuntu.com]
More information about the pkg-multimedia-maintainers
mailing list