[Mesa-dev] [PATCH] Revert "build: llvm libs may not be in system search path, add rpath"

Ilia Mirkin imirkin at alum.mit.edu
Wed Mar 19 09:32:23 PDT 2014


ping? should be fairly straight-forward... looks like gentoo moved
llvm back to /usr/lib for llvm-3.4 (while it was in /usr/lib/llvm for
llvm-3.1, current stable), so the original issue will disappear for me
as well.

On Mon, Mar 17, 2014 at 9:43 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> This reverts commit d9b983519c63b9072677364a6e399d213a1855e5.
>
> Unfortunately it seems like rpath is evaluated before LD_LIBRARY_PATH,
> so this breaks e.g. stream, as well as any other user of that env var,
> if the llvm path happens to be where other libs also reside.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76082
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
>  configure.ac | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index 3f75266..2ebed46 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1592,7 +1592,6 @@ if test "x$enable_gallium_llvm" = xyes; then
>          LLVM_CXXFLAGS=`strip_unwanted_llvm_flags "$LLVM_CONFIG --cxxflags"`
>          LLVM_INCLUDEDIR=`$LLVM_CONFIG --includedir`
>          LLVM_LIBDIR=`$LLVM_CONFIG --libdir`
> -        LLVM_LDFLAGS="-Wl,-rpath,$LLVM_LIBDIR $LLVM_LDFLAGS"
>
>          AC_COMPUTE_INT([LLVM_VERSION_MAJOR], [LLVM_VERSION_MAJOR],
>              [#include "${LLVM_INCLUDEDIR}/llvm/Config/llvm-config.h"])
> --
> 1.8.3.2
>


More information about the mesa-dev mailing list