diff options
author | Chuck Atkins <[email protected]> | 2018-01-23 08:52:46 -0500 |
---|---|---|
committer | Chuck Atkins <[email protected]> | 2018-01-25 14:54:08 -0500 |
commit | 6ac5e851f1a0b83d84156bc79983fd9527d4c296 (patch) | |
tree | 884377a4a698021a2c852998bb95b0e445e5dba4 /configure.ac | |
parent | 5d8f270d10439ce438c8d9d5058801f7146ff0f2 (diff) |
configure.ac: add missing llvm dependencies to .pc files
v2: Only add as dependencies for gallium-osmesa and gallium-xlib
CC: <[email protected]>
Signed-of-by: Chuck Atkins <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 9bfe1e3ecd2..ae5162319d1 100644 --- a/configure.ac +++ b/configure.ac @@ -2780,6 +2780,18 @@ if test "x$enable_llvm" = xyes; then fi fi fi + + dnl The gallium-xlib GLX and gallium OSMesa targets directly embed the + dnl swr/llvmpipe driver into the final binary. Adding LLVM_LIBS results in + dnl the LLVM library propagated in the Libs.private of the respective .pc + dnl file which ensures complete dependency information when statically + dnl linking. + if test "x$enable_glx" == xgallium-xlib; then + GL_PC_LIB_PRIV="$GL_PC_LIB_PRIV $LLVM_LIBS" + fi + if test "x$enable_gallium_osmesa" = xyes; then + OSMESA_PC_LIB_PRIV="$OSMESA_PC_LIB_PRIV $LLVM_LIBS" + fi fi AM_CONDITIONAL(HAVE_GALLIUM_SVGA, test "x$HAVE_GALLIUM_SVGA" = xyes) |