From: jstebbins Date: Wed, 16 Apr 2014 17:24:33 +0000 (+0000) Subject: contrib: fix building libvpx on mingw X-Git-Tag: 0.10.0~365 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e468d11bb75ab7356bdd3d70c84582eecc471d4b;p=handbrake contrib: fix building libvpx on mingw git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6166 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/contrib/libvpx/module.defs b/contrib/libvpx/module.defs index c2c0c4aea..e257d3493 100644 --- a/contrib/libvpx/module.defs +++ b/contrib/libvpx/module.defs @@ -3,8 +3,6 @@ $(eval $(call import.CONTRIB.defs,LIBVPX)) LIBVPX.FETCH.url = http://download.handbrake.fr/contrib/libvpx-v1.3.0.tar.bz2 -LIBVPX.CONFIGURE.env.LD = LD=$(subst CC=,,$(LIBVPX.CONFIGURE.env.CC)) - LIBVPX.CONFIGURE.args.host = LIBVPX.CONFIGURE.deps = LIBVPX.CONFIGURE.extra = \ @@ -15,6 +13,11 @@ LIBVPX.CONFIGURE.extra = \ --disable-docs \ --disable-unit-tests +ifeq (1,$(BUILD.cross)) + LIBVPX.CONFIGURE.env.CROSS = CROSS="$(BUILD.spec)-" + LIBVPX.CONFIGURE.args.build = +endif + ifeq (1-i686,$(BUILD.cross)-$(BUILD.machine)) LIBVPX.CONFIGURE.extra += --target=x86-win32-gcc else ifeq (1-x86_64,$(BUILD.cross)-$(BUILD.machine)) diff --git a/make/include/contrib.defs b/make/include/contrib.defs index 800f1c56c..2c16c5b3c 100644 --- a/make/include/contrib.defs +++ b/make/include/contrib.defs @@ -108,7 +108,7 @@ define import.CONTRIB.defs $(1).CONFIGURE.env.LDFLAGS = LDFLAGS="-L$$(call fn.ABSOLUTE,$(CONTRIB.build/))lib $$(call fn.ARGS,$(1).GCC,*archs *sysroot *minver ?extra.exe *D)" $(1).CONFIGURE.env.PKG_CONFIG_PATH = PKG_CONFIG_PATH="$$(call fn.ABSOLUTE,$$(CONTRIB.build/))lib/pkgconfig" - $(1).CONFIGURE.env.args = !CC !CFLAGS !CXX !CXXFLAGS !CPPFLAGS !LD !LDFLAGS !PKG_CONFIG_PATH !LOCAL_PATH + $(1).CONFIGURE.env.args = !CC !CFLAGS !CXX !CXXFLAGS !CPPFLAGS !LD !LDFLAGS !PKG_CONFIG_PATH !LOCAL_PATH !CROSS $(1).CONFIGURE.env = $$(call fn.ARGS,$(1).CONFIGURE.env,$$($(1).CONFIGURE.env.args)) $(1).CONFIGURE.target = $$($(1).build/).stamp.configure