From a5510fd45a7a5f6d606395d787b4181fe5aa70b9 Mon Sep 17 00:00:00 2001 From: jmcneill Date: Thu, 31 Jan 2013 12:21:12 +0000 Subject: [PATCH] Remove PIXMAN_NO_TLS and replace with HAVE_PTHREAD_SETSPECIFIC so the installed library is actually thread-safe. --- external/mit/xorg/lib/pixman/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/external/mit/xorg/lib/pixman/Makefile b/external/mit/xorg/lib/pixman/Makefile index f1b7e9624240..703ee7c3a60b 100644 --- a/external/mit/xorg/lib/pixman/Makefile +++ b/external/mit/xorg/lib/pixman/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2013/01/31 10:58:22 jmcneill Exp $ +# $NetBSD: Makefile,v 1.16 2013/01/31 12:21:12 jmcneill Exp $ NOLINT= 1 # defined @@ -85,8 +85,9 @@ CPPFLAGS+= -DHAVE_CONFIG_H \ -I${X11SRCDIR.pixman}/../combine \ -I${X11SRCDIR.pixman}/pixman -# XXX! wants __thread -CPPFLAGS+= -DPIXMAN_NO_TLS +# With pixman 0.28.3, HAVE_PTHREAD_SETSPECIFIC is much faster than TLS +CPPFLAGS+= -DHAVE_PTHREAD_SETSPECIFIC +#CPPFLAGS+= -DTLS=__thread LIBDPLIBS= m ${.CURDIR}/../../../../../lib/libm