<p dir="ltr">Reviewed-by: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>></p>
<div class="gmail_extra"><br><div class="gmail_quote">On Oct 24, 2016 7:21 PM, "Emil Velikov" <<a href="mailto:emil.l.velikov@gmail.com">emil.l.velikov@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>><br>
<br>
Currently if one uses a non-default prefix, the path won't get<br>
propagated and we'll fail at link-time.<br>
<br>
A very quick and easy example is to install to /usr/local.<br>
At this point, llvm-config will be picked even without the<br>
--with-llvm-prefix, but regardless of the latter linking will fail.<br>
<br>
Currently people can workaround that via LD_LIBRARY_PATH.<br>
<br>
Cc: "12.0 13.0" <<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.<wbr>freedesktop.org</a>><br>
Cc: Tom Stellard <<a href="mailto:thomas.stellard@amd.com">thomas.stellard@amd.com</a>><br>
Signed-off-by: Emil Velikov <<a href="mailto:emil.velikov@collabora.com">emil.velikov@collabora.com</a>><br>
---<br>
Can a brave soul, familiar with llvm, help us stop the manual<br>
llvm-config parsing and prep llvm.pc +<br>
llvm-{$component-foo,$<wbr>component-bar}.pc ?<br>
---<br>
<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> | 4 ++--<br>
1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> b/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
index d215b63..7d988f5 100644<br>
--- a/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
+++ b/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
@@ -1986,8 +1986,6 @@ AC_SUBST([LLVM_BINDIR])<br>
AC_SUBST([LLVM_CFLAGS])<br>
AC_SUBST([LLVM_CPPFLAGS])<br>
AC_SUBST([LLVM_CXXFLAGS])<br>
-AC_SUBST([LLVM_LIBDIR])<br>
-AC_SUBST([LLVM_LIBS])<br>
AC_SUBST([LLVM_LDFLAGS])<br>
AC_SUBST([LLVM_INCLUDEDIR])<br>
AC_SUBST([LLVM_VERSION])<br>
@@ -2540,7 +2538,9 @@ if test "x$MESA_LLVM" != x0; then<br>
LLVM_LIBS="$LLVM_LIBS `$LLVM_CONFIG --system-libs`"<br>
fi<br>
fi<br>
+ LLVM_LIBS="$LLVM_LIBDIR $LLVM_LIBS"<br>
fi<br>
+AC_SUBST([LLVM_LIBS])<br>
<br>
AM_CONDITIONAL(HAVE_GALLIUM_<wbr>SVGA, test "x$HAVE_GALLIUM_SVGA" = xyes)<br>
AM_CONDITIONAL(HAVE_GALLIUM_<wbr>I915, test "x$HAVE_GALLIUM_I915" = xyes)<br>
--<br>
2.10.0<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>
</blockquote></div></div>