6b9fc86c2e
From Thomas Orgis on pkgsrc-users.
28 lines
741 B
Makefile
28 lines
741 B
Makefile
# $NetBSD: hacks.mk,v 1.10 2014/12/09 11:43:19 wiz 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.
|
|
### XXX Need to disable SSSE3 explicitly, too.
|
|
###
|
|
.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 --disable-ssse3
|
|
.endif
|
|
.endif
|
|
|
|
.if !empty(PKGSRC_COMPILER:Msunpro)
|
|
CONFIGURE_ARGS+= --disable-sse2 --disable-mmx --disable-ssse3
|
|
.endif
|
|
|
|
.if ${OPSYS} == "MirBSD"
|
|
CONFIGURE_ARGS+= PTHREAD_LIBS=-pthread
|
|
.endif
|
|
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-[0-5].*-*)
|
|
CONFIGURE_ENV+= ac_cv_tls=none
|
|
.endif
|