[Mesa-dev] [PATCH] swr: fix swr linkage so that static llvm works
Chuck Atkins
chuck.atkins at kitware.com
Tue May 17 14:02:58 UTC 2016
>
> Then again, I doubt that this issue is static llvm specific. Most
> likely in the shared llvm case, we were producing libraries with
> unresolved symbols and those were implicitly resolved by something
> else ?
>
With swr specifically, the implementation is broken out into a separate
libswrAVX.so and libswrAVX2.so, one of which is chosen and loaded at
run-time. LLVM is linked into libGL but prior to this patch, not into
libswr*, so libswr had unresolved LLVM symbols. When linking to a shared
libLLVM, when libswr gets loaded at runtime then the symbols get resolved
by the libLLVM.so linked to by libGL. Obviously this doesn't work when the
LLVM libs are linked statically into libGL since libGL isn't exporting
those symbols.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160517/793c7005/attachment.html>
More information about the mesa-dev
mailing list