Make sure libGL.so links with libglsl
authorMatt Turner <mattst88@gmail.com>
Tue, 31 Jan 2012 16:54:24 +0000 (11:54 -0500)
committerMatt Turner <mattst88@gmail.com>
Tue, 31 Jan 2012 17:04:19 +0000 (12:04 -0500)
Can't link against *.la files if we're not using libtool to link.

Fixes undefined symbol: _ZN23ir_hierarchical_visitor5visitEP11ir_variable

configure.ac
src/mesa/sources.mak

index 8af24562646f5a657a0e833daa2ec1e7c3e1ce60..0e03af756a347b16482d19a8382adb4fea9ea8bf 100644 (file)
@@ -401,6 +401,7 @@ GLESv1_CM_LIB_NAME='lib$(GLESv1_CM_LIB).'${LIB_EXTENSION}
 GLESv2_LIB_NAME='lib$(GLESv2_LIB).'${LIB_EXTENSION}
 VG_LIB_NAME='lib$(VG_LIB).'${LIB_EXTENSION}
 GLAPI_LIB_NAME='lib$(GLAPI_LIB).'${LIB_EXTENSION}
+GLSL_LIB_NAME='libglsl.'${LIB_EXTENSION}
 
 GL_LIB_GLOB=${LIB_PREFIX_GLOB}'$(GL_LIB)'${LIB_VERSION_SEPARATOR}'*'${LIB_EXTENSION}'*'
 GLU_LIB_GLOB=${LIB_PREFIX_GLOB}'$(GLU_LIB)'${LIB_VERSION_SEPARATOR}'*'${LIB_EXTENSION}'*'
@@ -420,6 +421,7 @@ AC_SUBST([GLESv1_CM_LIB_NAME])
 AC_SUBST([GLESv2_LIB_NAME])
 AC_SUBST([VG_LIB_NAME])
 AC_SUBST([GLAPI_LIB_NAME])
+AC_SUBST([GLSL_LIB_NAME])
 
 AC_SUBST([GL_LIB_GLOB])
 AC_SUBST([GLU_LIB_GLOB])
index 07688906faa76a45812a3a57c97c31b16ef7e8ed..aadbf41550afe63ef4adb5ac598915837327275d 100644 (file)
@@ -368,7 +368,7 @@ COMMON_DRIVER_OBJECTS = $(COMMON_DRIVER_SOURCES:.c=.o)
 ### Other archives/libraries
 
 GLSL_LIBS = \
-       $(TOP)/src/glsl/libglsl.la
+       $(TOP)/src/glsl/.libs/$(GLSL_LIB_NAME)
 
 
 ### Include directories