[vlc-devel] [PATCH 3.0.x 2/4] configure: add share folder for pkg-config search path

Thomas Guillem thomas at gllm.fr
Mon Nov 2 14:03:37 CET 2020


Headers only projects install generally their .pc into the share directory.

(cherry picked from commit c3d17825dcc64ec15cced1e68086506c65d31463)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 1f74566008..c844053d4d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -470,7 +470,7 @@ AS_IF([test -n "${CONTRIB_DIR}"], [
   CFLAGS="${CFLAGS} -I${CONTRIB_DIR}/include"
   CXXFLAGS="${CXXFLAGS} -I${CONTRIB_DIR}/include"
   OBJCFLAGS="${OBJCFLAGS} -I${CONTRIB_DIR}/include -F${CONTRIB_DIR} -F${CONTRIB_DIR}/Frameworks"
-  export PKG_CONFIG_PATH="${CONTRIB_DIR}/lib/pkgconfig:$PKG_CONFIG_PATH"
+  export PKG_CONFIG_PATH="${CONTRIB_DIR}/lib/pkgconfig:${CONTRIB_DIR}/share/pkgconfig:$PKG_CONFIG_PATH"
   LDFLAGS="${LDFLAGS} -L${CONTRIB_DIR}/lib"
 
   AS_IF([test -z "$LUAC"], [
-- 
2.28.0



More information about the vlc-devel mailing list