Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/mit/xorg/lib/gallium Build gallium with -pthread if...



details:   https://anonhg.NetBSD.org/src/rev/909bd0d8dc21
branches:  trunk
changeset: 349209:909bd0d8dc21
user:      dholland <dholland%NetBSD.org@localhost>
date:      Tue Nov 29 23:17:22 2016 +0000

description:
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

diffstat:

 external/mit/xorg/lib/gallium/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 51e0d2b56df9 -r 909bd0d8dc21 external/mit/xorg/lib/gallium/Makefile
--- a/external/mit/xorg/lib/gallium/Makefile    Tue Nov 29 22:27:09 2016 +0000
+++ b/external/mit/xorg/lib/gallium/Makefile    Tue Nov 29 23:17:22 2016 +0000
@@ -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 @@
 
 .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



Home | Main Index | Thread Index | Old Index