Sun Apr 8 17:21:13 2012 UTC ()
Fix build on MirBSD by working around a bug in configure.

The problem is the following: When checking the CFLAGS / LIBS for
including pthread support, any warning on stdout is counted as a no.
However, the test does not use CFLAGS on the command line, which
produces a harmless debug warning. This workaround has the consequence
of adding the default CFLAGS twice on the command line but this is not
a problem.


(bsiegert)
diff -r1.97 -r1.98 pkgsrc/graphics/cairo/Makefile

cvs diff -r1.97 -r1.98 pkgsrc/graphics/cairo/Makefile (expand / switch to context diff)
--- pkgsrc/graphics/cairo/Makefile 2012/02/24 10:40:49 1.97
+++ pkgsrc/graphics/cairo/Makefile 2012/04/08 17:21:13 1.98
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.97 2012/02/24 10:40:49 obache Exp $
+# $NetBSD: Makefile,v 1.98 2012/04/08 17:21:13 bsiegert Exp $
 
 DISTNAME=	cairo-1.10.2
 PKGREVISION=	4
@@ -44,6 +44,11 @@
 .include "../../mk/compiler.mk"
 .if ${MACHINE_PLATFORM:MDragonFly-*-x86_64} && ${CC_VERSION:Mgcc-4.1.*}
 CONFIGURE_ENV+=		ac_cv_type___uint128_t=no
+.endif
+
+# Workaround so that pthread is found on MirBSD
+.if ${OPSYS} == "MirBSD"
+CONFIGURE_ENV+=	PTHREAD_CFLAGS=${CFLAGS:Q}
 .endif
 
 .include "../../devel/zlib/buildlink3.mk"