diff options
author | bsiegert <bsiegert> | 2012-04-08 17:21:13 +0000 |
---|---|---|
committer | bsiegert <bsiegert> | 2012-04-08 17:21:13 +0000 |
commit | 25da613b06fd8be95395ad189bd18d7ffe802cc4 (patch) | |
tree | bc37d4f33b6647ca67fc8f8cdb52d5a969fdbd15 | |
parent | ce534f05d4d5423699f8e9eb8a713f97c32d24f4 (diff) | |
download | pkgsrc-25da613b06fd8be95395ad189bd18d7ffe802cc4.tar.gz |
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.
-rw-r--r-- | graphics/cairo/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/graphics/cairo/Makefile b/graphics/cairo/Makefile index 2795425c982..1908655871d 100644 --- a/graphics/cairo/Makefile +++ b/graphics/cairo/Makefile @@ -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 @@ -46,6 +46,11 @@ TEST_TARGET= check 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" .include "../../fonts/fontconfig/buildlink3.mk" BUILDLINK_API_DEPENDS.freetype2+= freetype2>=2.1.9 |