Module Name:    src
Committed By:   dholland
Date:           Tue Nov 29 23:17:22 UTC 2016

Modified Files:
        src/external/mit/xorg/lib/gallium: Makefile

Log Message:
Build gallium with -pthread if we're building the radeon driver. It uses a
thread, so without this the driver doesn't load and nothing works. ok mrg


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/external/mit/xorg/lib/gallium/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/mit/xorg/lib/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.16 src/external/mit/xorg/lib/gallium/Makefile:1.17
--- src/external/mit/xorg/lib/gallium/Makefile:1.16	Tue Sep 27 19:18:42 2016
+++ src/external/mit/xorg/lib/gallium/Makefile	Tue Nov 29 23:17:22 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2016/09/27 19:18:42 joerg Exp $
+# $NetBSD: Makefile,v 1.17 2016/11/29 23:17:22 dholland Exp $
 
 # Link the gallium mega driver.
 
@@ -548,6 +548,11 @@ SRCS+=	${GALLIUM_SOURCES.${_d}}
 
 .include "../libloader.mk"
 
+.if ${BUILD_RADEON} == 1
+CFLAGS+=	-pthread
+LDFLAGS+=	-pthread
+LIBDPLIBS+=	pthread		${.CURDIR}/../../../../../lib/libpthread
+.endif
 
 LIBDPLIBS+=	m		${.CURDIR}/../../../../../lib/libm
 .if ${BUILD_RADEON} == 1 || ${BUILD_NOUVEAU} == 1

Reply via email to