Re: xenocara build failure on loongson

Brian Callahan <[email protected]> Tue, 19 Mar 2013 09:09:39 -0400
Newsgroups gmane.os.openbsd.x11
Message-ID <[email protected]>
On 3/18/2013 6:50 PM, Matthieu Herrb wrote:
>
> Ok. So afer advice from kettenis@, here's a imho better
> patch. (keeping the list in Makefile.inc will make it easier to expand
> it later)
>
> diff --git lib/fontconfig/Makefile.inc lib/fontconfig/Makefile.inc
> index 5f0c63a..2854fb8 100644
> --- lib/fontconfig/Makefile.inc
> +++ lib/fontconfig/Makefile.inc
> @@ -16,4 +16,10 @@ CFLAGS +=	-I${FONTCONFIG} \
>   		-I${.CURDIR}/../common \
>   		-I${.CURDIR}
>
> +.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "amd64" || \
> +    ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || \
> +    ${MACHINE_ARCH} == "sparc64"
> +CFLAGS +=	-DHAVE_INTEL_ATOMIC_PRIMITIVES=1
> +.endif
> +
>   NOPROFILE =
> diff --git lib/fontconfig/common/config.h lib/fontconfig/common/config.h
> index 1836d1f..27713a1 100644
> --- lib/fontconfig/common/config.h
> +++ lib/fontconfig/common/config.h
> @@ -90,7 +90,7 @@
>   #define HAVE_GETUID 1
>
>   /* Have Intel __sync_* atomic primitives */
> -#define HAVE_INTEL_ATOMIC_PRIMITIVES 1
> +/* #undef HAVE_INTEL_ATOMIC_PRIMITIVES 1 */
>
>   /* Define to 1 if you have the <inttypes.h> header file. */
>   #define HAVE_INTTYPES_H 1
>
>

This works for me on amd64, loongson & macppc.

~Brian