Bug 98474

Summary: Linking mesa against [non-standard prefixed] LLVM fails
Product: Mesa Reporter: Emil Velikov <emil.l.velikov>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact: mesa-dev
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 98471    

Description Emil Velikov 2016-10-28 14:40:40 UTC
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/
Comment 1 Emil Velikov 2016-11-17 15:36:54 UTC
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.