Mesa (master): drivers/osmesa: Link OSMesa using -no-undefined libtool flag

Jon TURNEY jturney at kemper.freedesktop.org
Wed Jul 25 11:44:39 UTC 2012


Module: Mesa
Branch: master
Commit: 9f84d645a422a024b01ebcfc654c2909cdca91b5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f84d645a422a024b01ebcfc654c2909cdca91b5

Author: Jon TURNEY <jon.turney at dronecode.org.uk>
Date:   Sat Jul  7 22:02:44 2012 +0100

drivers/osmesa: Link OSMesa using -no-undefined libtool flag

"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 at dronecode.org.uk>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Eric Anholt <eric at anholt.net>

---

 src/mesa/drivers/osmesa/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/osmesa/Makefile.am b/src/mesa/drivers/osmesa/Makefile.am
index 7c151bf..59ee62a 100644
--- a/src/mesa/drivers/osmesa/Makefile.am
+++ b/src/mesa/drivers/osmesa/Makefile.am
@@ -37,7 +37,7 @@ endif
 
 lib at OSMESA_LIB@_la_SOURCES = osmesa.c
 
-lib at OSMESA_LIB@_la_LDFLAGS = -module -version-number @OSMESA_VERSION@ -shared
+lib at OSMESA_LIB@_la_LDFLAGS = -module -version-number @OSMESA_VERSION@ -shared -no-undefined
 lib at OSMESA_LIB@_la_LIBADD = \
 	$(top_builddir)/src/mesa/libmesa.la \
 	$(top_builddir)/src/mapi/glapi/libglapi.la




More information about the mesa-commit mailing list