pkgsrc/x11/pixman/hacks.mk
bsiegert 9effe322e7 MirBSD build fix for pixman: use correct pthread options. No change for
other platforms.

The pthread check macro in pixman's configure is fundamentally broken,
it seems. It would be better to fix it instead of working around ...

Reviewed by Thomas Klausner.
2011-12-31 15:37:55 +00:00

23 lines
581 B
Makefile

# $NetBSD: hacks.mk,v 1.7 2011/12/31 15:37:55 bsiegert Exp $
#
.if !defined(PIXMAN_HACKS_MK)
PIXMAN_HACKS_MK= # empty
. include "../../mk/bsd.fast.prefs.mk"
. include "../../mk/compiler.mk"
###
### XXX SSE2 intrinsics require gcc-4.2+ to build.
###
.if empty(CC_VERSION:Mgcc-4.[2-9]*) && \
empty(CC_VERSION:Mgcc-[5-9].*) && \
empty(CC_VERSION:Mgcc-[1-9][0-9]*)
CONFIGURE_ARGS+= --disable-sse2
. endif
.endif
.if !empty(PKGSRC_COMPILER:Msunpro)
CONFIGURE_ARGS+= --disable-sse2 --disable-mmx
.endif
.if ${OPSYS} == "MirBSD"
CONFIGURE_ARGS+= PTHREAD_LIBS=-pthread
.endif