[SCM] ffmpeg/master: Set configure options for cross-building

aca-guest at users.alioth.debian.org aca-guest at users.alioth.debian.org
Tue Oct 11 19:51:37 UTC 2016


The following commit has been merged in the master branch:
commit b9071cb33f3efc56a092d3246942085f68432729
Author: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
Date:   Tue Oct 11 21:06:16 2016 +0200

    Set configure options for cross-building
    
    This enables cross-building ffmpeg, once the dependencies are fixed.

diff --git a/debian/rules b/debian/rules
index d4637b3..15823cb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -173,6 +173,14 @@ ifneq (,$(filter $(DEB_HOST_ARCH),mips mipsel))
 	CONFIG += --disable-mipsfpu
 endif
 
+# Set cross-build prefix for compiler, pkg-config...
+# Cross-building also requires to manually set architecture/OS.
+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+	CONFIG += --cross-prefix=$(DEB_HOST_GNU_TYPE)- \
+		--arch=$(DEB_HOST_ARCH) \
+		--target-os=$(DEB_HOST_ARCH_OS)
+endif
+
 # export all *FLAG env vars
 export DPKG_EXPORT_BUILDFLAGS
 include /usr/share/dpkg/buildflags.mk

-- 
ffmpeg packaging



More information about the pkg-multimedia-commits mailing list