<div dir="ltr"><div>Acked-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div>Untested-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 26, 2018 at 8:46 AM, Dylan Baker <span dir="ltr"><<a href="mailto:dylan@pnwbakers.com" target="_blank">dylan@pnwbakers.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">libgl will be undefined if with_glx == 'disabled', so move that check<br>
inside the `if with_glx == 'disabled'` block immediately after that<br>
check.<br>
<br>
Fixes: 5c460337fd9c109 ("meson: Fix GL and EGL pkg-config files with glvnd")<br>
Reported-by: Jason Ekstrand <<a href="mailto:jason.ekstrand@intel.com">jason.ekstrand@intel.com</a>><br>
Signed-off-by: Dylan Baker <<a href="mailto:dylan.c.baker@intel.com">dylan.c.baker@intel.com</a>><br>
CC: Daniel Stone <<a href="mailto:daniels@collabora.com">daniels@collabora.com</a>><br>
CC: Jason Ekstrand <<a href="mailto:jason.ekstrand@intel.com">jason.ekstrand@intel.com</a>><br>
---<br>
src/meson.build | 19 ++++++++++---------<br>
1 file changed, 10 insertions(+), 9 deletions(-)<br>
<br>
diff --git a/src/meson.build b/src/meson.build<br>
index b2c045fce10..19005271d73 100644<br>
--- a/src/meson.build<br>
+++ b/src/meson.build<br>
@@ -82,18 +82,19 @@ if with_gallium<br>
subdir('gallium')<br>
endif<br>
<br>
-# If using glvnd the pkg-config header should not point to GL_mesa, it should<br>
-# point to GL. glvnd is only available on unix like platforms so adding -l<br>
-# should be safe here<br>
-# TODO: in the glvnd case glvnd itself should really be providing this.<br>
-if with_glvnd<br>
- _gl = '-L${libdir} -lGL'<br>
-else<br>
- _gl = libgl<br>
-endif<br>
# This must be after at least mesa, glx, and gallium, since libgl will be<br>
# defined in one of those subdirs depending on the glx provider.<br>
if with_glx != 'disabled'<br>
+ # If using glvnd the pkg-config header should not point to GL_mesa, it should<br>
+ # point to GL. glvnd is only available on unix like platforms so adding -l<br>
+ # should be safe here<br>
+ # TODO: in the glvnd case glvnd itself should really be providing this.<br>
+ if with_glvnd<br>
+ _gl = '-L${libdir} -lGL'<br>
+ else<br>
+ _gl = libgl<br>
+ endif<br>
+<br>
pkg.generate(<br>
name : 'gl',<br>
description : 'Mesa OpenGL Library',<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.16.2<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>