Bug 98474 - Linking mesa against [non-standard prefixed] LLVM fails
Summary: Linking mesa against [non-standard prefixed] LLVM fails
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 98471
  Show dependency treegraph
 
Reported: 2016-10-28 14:40 UTC by Emil Velikov
Modified: 2016-11-17 15:36 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.