Don't explicitly link libOsmesa with libmesa's dependency libglsl
authorJon TURNEY <jon.turney@dronecode.org.uk>
Sun, 8 Jul 2012 22:26:11 +0000 (23:26 +0100)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Fri, 13 Jul 2012 11:44:44 +0000 (12:44 +0100)
The libmesa convenience library is linked with the libglsl convenience
library.  libOsmesa is linked with libmesa, and also directly with libglsl.
When using libtool, this gives rise to duplicate symbol errors.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/osmesa/Makefile.am

index 9989c92620fcf3a1535b7e35563bee4a487a5b98..7c151bf705ff2fc5c5373504f0834bb48f0d189d 100644 (file)
@@ -40,8 +40,7 @@ lib@OSMESA_LIB@_la_SOURCES = osmesa.c
 lib@OSMESA_LIB@_la_LDFLAGS = -module -version-number @OSMESA_VERSION@ -shared
 lib@OSMESA_LIB@_la_LIBADD = \
        $(top_builddir)/src/mesa/libmesa.la \
-       $(top_builddir)/src/mapi/glapi/libglapi.la \
-       $(top_builddir)/src/glsl/libglsl.la
+       $(top_builddir)/src/mapi/glapi/libglapi.la
 
 # 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.