summaryrefslogtreecommitdiffstats
path: root/contrib/ffmpeg
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2016-09-03 01:04:08 -0400
committerBradley Sepos <[email protected]>2016-09-03 01:29:08 -0400
commited0be87a9c8a6989b2b45f7b4135a0b2401c0756 (patch)
treee2e4930b19b33330cf55c77953c3969304d9ec6f /contrib/ffmpeg
parentf0efd991702051364e375da06546a64951f24dca (diff)
contrib: Use PKGCONFIG.exe when building libav on mingw.
Fixes broken external libraries such as opus, and needed for libav 12, anyway.
Diffstat (limited to 'contrib/ffmpeg')
-rw-r--r--contrib/ffmpeg/module.defs5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/ffmpeg/module.defs b/contrib/ffmpeg/module.defs
index ccb61eca1..bb27b953d 100644
--- a/contrib/ffmpeg/module.defs
+++ b/contrib/ffmpeg/module.defs
@@ -92,6 +92,11 @@ else ifeq (1-mingw,$(BUILD.cross)-$(BUILD.system))
--arch=$(BUILD.machine) \
--enable-cross-compile --cross-prefix=$(BUILD.cross.prefix)
FFMPEG.GCC.args.extra += -fno-common
+ ifeq (1,$(FEATURE.local_pkgconfig))
+ FFMPEG.CONFIGURE.extra += --pkg-config="$(call fn.ABSOLUTE,$(CONTRIB.build/)bin/$(PKGCONFIG.exe))"
+ else
+ FFMPEG.CONFIGURE.extra += --pkg-config=$(PKGCONFIG.exe)
+ endif
endif
ifneq (none,$(FFMPEG.GCC.g))