Package: rtmpdump
Version: 2.4+20111222.git4e06e21-1
Severity: normal
Tags: patch
User: [email protected]
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 [[email protected]]
_______________________________________________
pkg-multimedia-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers