drivers/X11: Link X11 libGL with -no-undefined libtool flag
authorJon TURNEY <jon.turney@dronecode.org.uk>
Sat, 7 Jul 2012 17:01:50 +0000 (18:01 +0100)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Wed, 25 Jul 2012 11:38:38 +0000 (12:38 +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/x11/Makefile.am

index 726a9c66936c8f8b3119abfbab6df5bd4b2b1bf1..0c6b5ae18fb4e2a0d40a5acbfccc2c0c01f49194 100644 (file)
@@ -60,6 +60,7 @@ lib@GL_LIB@_la_LIBADD = \
        $(top_builddir)/src/mapi/glapi/libglapi.la
 lib@GL_LIB@_la_LDFLAGS = \
        -version-number $(GL_MAJOR):$(GL_MINOR):$(GL_PATCH) \
+       -no-undefined \
        $(GL_LIB_DEPS)
 
 if HAVE_SHARED_GLAPI