<html><head></head><body>Hi,<br><br>I'd think the same effects can be done in a single line without an if/else/endif.<br><br><div class="gmail_quote">Le 6 mars 2019 11:16:05 GMT+02:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">pkg-config fails to find packages (on msys2) if the path is like<br>/some/path:/other/path:<hr> contrib/src/main.mak | 4 ++++<br> 1 file changed, 4 insertions(+)<br><br>diff --git a/contrib/src/main.mak b/contrib/src/main.mak<br>index d3caf2c8dc..8f9e723a71 100644<br>--- a/contrib/src/main.mak<br>+++ b/contrib/src/main.mak<br>@@ -215,7 +215,11 @@ PKG_CONFIG_PATH := /usr/share/pkgconfig<br> PKG_CONFIG_LIBDIR := /usr/$(HOST)/lib/pkgconfig<br> export PKG_CONFIG_LIBDIR<br> endif<br>+ifeq ($(findstring $(PKG_CONFIG_PATH),/),)<br>+PKG_CONFIG_PATH := $(PREFIX)/lib/pkgconfig<br>+else<br> PKG_CONFIG_PATH := $(PREFIX)/lib/pkgconfig:$(PKG_CONFIG_PATH)<br>+endif<br> export PKG_CONFIG_PATH<br> <br> ifndef GIT</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>