Introduction of zlib compression for the shader cache means
zlib needs to be explicitly linked to libOSMesa and libstandalone
otherwise build fails when LTO is used.
---
 src/compiler/Makefile.glsl.am          | 1 +
 src/gallium/targets/osmesa/Makefile.am | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/compiler/Makefile.glsl.am
b/src/compiler/Makefile.glsl.am
index 41edb3cf4d..7be607c74c 100644
--- a/src/compiler/Makefile.glsl.am
+++ b/src/compiler/Makefile.glsl.am
@@ -141,6 +141,7 @@ glsl_libstandalone_la_LIBADD =                      
        \
        glsl/libglsl.la                                 \
        $(top_builddir)/src/libglsl_util.la             \
        $(top_builddir)/src/util/libmesautil.la         \
+       $(ZLIB_LIBS)                                    \
        $(PTHREAD_LIBS)
 
 glsl_compiler_SOURCES = \
diff --git a/src/gallium/targets/osmesa/Makefile.am
b/src/gallium/targets/osmesa/Makefile.am
index 6d340f1d92..b7b9248126 100644
--- a/src/gallium/targets/osmesa/Makefile.am
+++ b/src/gallium/targets/osmesa/Makefile.am
@@ -66,7 +66,8 @@ lib@OSMESA_LIB@_la_LIBADD = \
        $(top_builddir)/src/mapi/glapi/libglapi.la \
        $(SHARED_GLAPI_LIB) \
        $(OSMESA_LIB_DEPS) \
-       $(CLOCK_LIB)
+       $(CLOCK_LIB) \
+       $(ZLIB_LIBS)
 
 if HAVE_GALLIUM_LLVM
 AM_CPPFLAGS += -DGALLIUM_LLVMPIPE

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to