[PATCH] Fix underlinking in libOSMesa since commit adefee5 "Always build shared glapi"

Jon TURNEY jon.turney at dronecode.org.uk
Sun Jan 22 05:23:26 PST 2012

Since we now always build shared glapi, this exposes the fact that libOSMesa was
underlinked when glapi was built shared.

Fix this by doing the same thing as drivers/X11/Makefile already does, ensuring
that the library is linked with the shared glapi library.

(I'm not clear why we link with both glapi.a and glapi.so, so this may be all wrong)

Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
 src/mesa/drivers/osmesa/Makefile |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/osmesa/Makefile b/src/mesa/drivers/osmesa/Makefile
index 39ab09a..005f4d5 100644
--- a/src/mesa/drivers/osmesa/Makefile
+++ b/src/mesa/drivers/osmesa/Makefile
@@ -25,6 +25,8 @@ CORE_MESA = \
 	$(TOP)/src/mapi/glapi/libglapi.a \
 	$(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@


More information about the mesa-dev mailing list