From df4dccc7a9691555e05c8945048603621340b5d7 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Wed, 22 Aug 2012 11:51:31 -0700 Subject: build: Only add links to .so files if we're building them Xlib-GLX and OSMesa support static building. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=53962 --- src/mesa/drivers/osmesa/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/drivers/osmesa/Makefile.am') diff --git a/src/mesa/drivers/osmesa/Makefile.am b/src/mesa/drivers/osmesa/Makefile.am index 1ceff886d01..db1d14fe80e 100644 --- a/src/mesa/drivers/osmesa/Makefile.am +++ b/src/mesa/drivers/osmesa/Makefile.am @@ -40,12 +40,14 @@ lib@OSMESA_LIB@_la_LIBADD = \ $(top_builddir)/src/mesa/libmesa.la \ $(top_builddir)/src/mapi/glapi/libglapi.la +if BUILD_SHARED # Provide compatibility with scripts for the old Mesa build system for # a while by putting a link to the driver into /lib of the build tree. all-local: lib@OSMESA_LIB@.la $(MKDIR_P) $(top_builddir)/$(LIB_DIR); ln -f .libs/lib@OSMESA_LIB@.so $(top_builddir)/$(LIB_DIR)/lib@OSMESA_LIB@.so; ln -f .libs/lib@OSMESA_LIB@.so.@VERSION@ $(top_builddir)/$(LIB_DIR)/lib@OSMESA_LIB@.so.@VERSION@; +endif pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = osmesa.pc -- cgit v1.2.3