From fb21976d5265fa578e6c8459a057bc9873756e25 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 22 Aug 2013 19:26:52 +0000 Subject: Gallium requires gcc 4 __sync_and_fetch() support, so don't bother trying to build it on platforms which don't provide this. ok jsg@ matthieu@ --- share/mk/bsd.xconf.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'share/mk/bsd.xconf.mk') diff --git a/share/mk/bsd.xconf.mk b/share/mk/bsd.xconf.mk index 05e530eb2..ee5e9286d 100644 --- a/share/mk/bsd.xconf.mk +++ b/share/mk/bsd.xconf.mk @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.xconf.mk,v 1.26 2013/08/17 17:05:43 bcallah Exp $ +# $OpenBSD: bsd.xconf.mk,v 1.27 2013/08/22 19:26:51 miod Exp $ # Shared libs? .if ${MACHINE} == "vax" @@ -15,7 +15,15 @@ XENOCARA_BUILD_DRI?=no XENOCARA_BUILD_GL?=${XENOCARA_HAVE_SHARED_LIBS:L} XENOCARA_BUILD_DRI?=${XENOCARA_HAVE_SHARED_LIBS:L} .endif +# Gallium requires gcc 4 __sync_and_fetch() support +.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "hppa" || \ + ${MACHINE_ARCH} == "hppa64" || ${MACHINE_ARCH} == "m68k" || \ + ${MACHINE_ARCH} == "m88k" || ${MACHINE_CPU} == "mips64" || \ + ${MACHINE_ARCH} == "sh" || ${MACHINE_ARCH} == "sparc" +XENOCARA_BUILD_GALLIUM?=no +.else XENOCARA_BUILD_GALLIUM?=${XENOCARA_HAVE_SHARED_LIBS:L} +.endif # Build pixman? .if ${MACHINE} == "vax" -- cgit v1.2.3