Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Aug 2012 12:33:08 -0400
From:      Jason E. Hale <bsdkaffee@gmail.com>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        x11@FreeBSD.org
Subject:   [PATCH] graphics/libGL: Don't link to -lpthread directly 
Message-ID:  <1344529988.962291.70593@mocha.verizon.net>

next in thread | raw e-mail | index | archive | help

>Submitter-Id:	current-users
>Originator:	Jason E. Hale
>Organization:	none 
>Confidential:	no 
>Synopsis:	[PATCH] graphics/libGL: Don't link to -lpthread directly 
>Severity:	non-critical 
>Priority:	low 
>Category:	ports 
>Class:		sw-bug 
>Release:	FreeBSD 9.0-RELEASE i386
>Environment:
System: FreeBSD mocha.verizon.net 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Thu Jan 19 11:42:41 EST 2012 Jason@mocha.verizon.net:/usr/obj/usr/src/sys/MOCHA9 i386


	
>Description:
The Mesa libraries link to -lpthread instead of PTHREAD_LIBS
	
>How-To-Repeat:
Build graphics/libGL, graphics/libGLU, graphics/libGLw, or graphics/dri
	
>Fix:

	



--- 2012-08-08-libGL.diff begins here ---
Index: libGL/bsd.mesalib.mk
===================================================================
--- libGL/bsd.mesalib.mk	(revision 302306)
+++ libGL/bsd.mesalib.mk	(working copy)
@@ -102,7 +102,7 @@
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|-ffast-math|${FAST_MATH}|' -e 's|x86_64|amd64|' \
-		${WRKSRC}/configure
+		-e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
 	@${REINPLACE_CMD} -e 's|[$$](INSTALL_LIB_DIR)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
 		${WRKSRC}/src/glu/Makefile \
 		${WRKSRC}/src/glw/Makefile \
Index: libGL/Makefile
===================================================================
--- libGL/Makefile	(revision 302306)
+++ libGL/Makefile	(working copy)
@@ -7,6 +7,7 @@
 
 PORTNAME=	libGL
 PORTVERSION=	${MESAVERSION}
+PORTREVISION=	1
 CATEGORIES=	graphics
 
 COMMENT=	OpenGL library that renders using GLX or DRI
Index: libGLU/Makefile
===================================================================
--- libGLU/Makefile	(revision 302306)
+++ libGLU/Makefile	(working copy)
@@ -6,6 +6,7 @@
 #
 
 PORTNAME=	libGLU
+PORTREVISION=	1
 PORTVERSION=	${MESAVERSION}
 CATEGORIES=	graphics
 
Index: libGLw/Makefile
===================================================================
--- libGLw/Makefile	(revision 302306)
+++ libGLw/Makefile	(working copy)
@@ -7,6 +7,7 @@
 
 PORTNAME=	libGLw
 PORTVERSION=	${MESAVERSION}
+PORTREVISION=	1
 CATEGORIES=	graphics
 
 COMMENT=	OpenGL widgets library
Index: dri/Makefile
===================================================================
--- dri/Makefile	(revision 302306)
+++ dri/Makefile	(working copy)
@@ -7,7 +7,7 @@
 
 PORTNAME=	dri
 PORTVERSION=	${MESAVERSION}
-PORTREVISION=	1
+PORTREVISION=	2
 PORTEPOCH=	2
 CATEGORIES=	graphics
 
--- 2012-08-08-libGL.diff ends here ---




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1344529988.962291.70593>