drivers/osmesa: Link OSMesa using -no-undefined libtool flag
authorJon TURNEY <jon.turney@dronecode.org.uk>
Sat, 7 Jul 2012 21:02:44 +0000 (22:02 +0100)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Wed, 25 Jul 2012 11:39:42 +0000 (12:39 +0100)
"Use -no-undefined to assure libtool that the library has no
unresolved symbols at link time, so that libtool will build a shared
library on platforms require that all symbols are resolved when the
library is linked."

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

index 7c151bf705ff2fc5c5373504f0834bb48f0d189d..59ee62a7a66eef71be25080979f0f51d2019074f 100644 (file)
@@ -37,7 +37,7 @@ endif
 
 lib@OSMESA_LIB@_la_SOURCES = osmesa.c
 
-lib@OSMESA_LIB@_la_LDFLAGS = -module -version-number @OSMESA_VERSION@ -shared
+lib@OSMESA_LIB@_la_LDFLAGS = -module -version-number @OSMESA_VERSION@ -shared -no-undefined
 lib@OSMESA_LIB@_la_LIBADD = \
        $(top_builddir)/src/mesa/libmesa.la \
        $(top_builddir)/src/mapi/glapi/libglapi.la