Since we don't propagate the LLVM_LIBDIR (-L/foo) to the linker we can fail at link stage. That's due to the library variable LLVM_LIBS (as provided by llvm-config --libs) containing only -lfoo. One workaround is to use, LD_LIBRARY_PATH or alike. Although one should _not_ need to do that in the first place - that's why we have .pc (and equivalents). The following seems fixes things on my end https://patchwork.freedesktop.org/patch/117846/
Most likely a issue on my end (or buggy LLVM build) since we propagate LLVM_LDFLAGS throughout mesa. That in itself contains the -L/path/to/llvm/libraries. We might want to double-check (for missing LLVM_LDFLAGS) at some point in the future. Closing for now.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.