[vlc-devel] [PATCH] configure: make sure PKG_CONFIG_PATH is empty when cross-compiling
Rémi Denis-Courmont
remi at remlab.net
Wed Jan 25 08:23:53 CET 2012
This is totally wrong. Some non-stupid build systems do set PKG_CONFIG
variables correctly. In fact the existing code around PKG_CONFIG_LIBDIR is
already wrong.
On Tue, 24 Jan 2012 23:47:34 -0500, Rafaël Carré <funman at videolan.org>
wrote:
> avoid finding system libraries
> ---
> configure.ac | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 72091af..08b9b43 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -319,6 +319,7 @@ AS_IF([test -n "${CONTRIB_DIR}"], [
> AS_IF([test "$build" = "$host" -o "$PKG_CONFIG_LIBDIR"], [
> export
PKG_CONFIG_PATH="${CONTRIB_DIR}/lib/pkgconfig:$PKG_CONFIG_PATH"
> ], [
> + export PKG_CONFIG_PATH=""
> export PKG_CONFIG_LIBDIR="${CONTRIB_DIR}/lib/pkgconfig"
> ])
> LDFLAGS="${LDFLAGS} -L${CONTRIB_DIR}/lib"
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list