[vlc-devel] [PATCH 2/5] contrib: always use $(PKG_CONFIG) to find available dependencies
Steve Lhomme
robux4 at ycbcr.xyz
Fri Feb 14 13:37:50 CET 2020
When cross-compiling the PKG_CONFIG is either forced by the environment, to find
what the user wants us to find, or we detect a usable one and set common system
pathes where we might find usable packages.
It's possible to disable the use of PKG_CONFIG like it used to be by setting
PKG_CONFIG=false in the environment, when building contribs.
---
contrib/src/main.mak | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 73d23d0018f..7144eab9ec1 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -45,15 +45,7 @@ ifeq ($(ARCH)-$(HAVE_WIN32),aarch64-1)
HAVE_WIN64 := 1
endif
-ifdef HAVE_CROSS_COMPILE
-need_pkg = 1
-else
-ifeq ($(findstring mingw32,$(BUILD)),mingw32)
-need_pkg = $(shell PKG_CONFIG_LIBDIR="${PKG_CONFIG_PATH}" $(PKG_CONFIG) $(1) || echo 1)
-else
need_pkg = $(shell $(PKG_CONFIG) $(1) || echo 1)
-endif
-endif
ifeq ($(findstring mingw32,$(BUILD)),mingw32)
MSYS_BUILD := 1
@@ -133,6 +125,7 @@ else
PKG_CONFIG_LIBDIR := /usr/$(HOST)/lib/pkgconfig:/usr/lib/$(HOST)/pkgconfig
endif
export PKG_CONFIG_LIBDIR
+need_pkg = $(shell PKG_CONFIG_LIBDIR=$(PKG_CONFIG_LIBDIR) $(PKG_CONFIG) $(1) || echo 1)
endif
endif
--
2.17.1
More information about the vlc-devel
mailing list