From e5c93a1589fd1d39336854356f23b5cfa5cada52 Mon Sep 17 00:00:00 2001 From: Matt Clarkson Date: Thu, 11 Aug 2016 09:08:57 +0100 Subject: [PATCH] build: use '${prefix}' for pkg-config 'exec_prefix' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This follows common pkg-config configuration files and allows for certain pkg-config overrides to work. For example, when cross-compiling it is common to have to set a different pkg-config prefix through either '--define-prefix' or a 'PKG_CONFIG_LIBUV_PREFIX' environment variable. If the 'exec_prefix' is hardcoded to '@prefix@' then it will not pick up those pkg-config overrides. PR-URL: https://github.com/libuv/libuv/pull/993 Reviewed-By: Ben Noordhuis Reviewed-By: Saúl Ibarra Corretgé --- libuv.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libuv.pc.in b/libuv.pc.in index 2933ec22..9174fe15 100644 --- a/libuv.pc.in +++ b/libuv.pc.in @@ -1,5 +1,5 @@ prefix=@prefix@ -exec_prefix=@prefix@ +exec_prefix=${prefix} libdir=@libdir@ includedir=@includedir@