pkgsrc/mk/atomic64.mk
he 6671b645f0 atomic64.mk: also do this for earm* platforms.
Fixes build issue for the upcoming rust 1.66,
which will land in wip shortly.
2022-12-22 10:52:52 +00:00

29 lines
723 B
Makefile

# $NetBSD: atomic64.mk,v 1.8 2022/12/22 10:52:52 he Exp $
#
# This Makefile fragment is included by packages that require 64-bit atomic
# operations, and will attempt to set the appropriate architecture-specific
# compiler flags.
.if !defined(ATOMIC64_MK)
ATOMIC64_MK:=
.include "../../mk/bsd.fast.prefs.mk"
.if ${MACHINE_ARCH} == "i386"
. if empty(CFLAGS:M*march=*)
CFLAGS+= -march=i586
. endif
.endif
.if ${MACHINE_ARCH} == "m68k" || \
${MACHINE_ARCH} == "mipsel" || \
${MACHINE_ARCH} == "mipseb" || \
${MACHINE_ARCH} == "powerpc" || \
${MACHINE_ARCH} == "sparc" || \
${MACHINE_ARCH} == "vax" || \
!empty(MACHINE_ARCH:Mearm*)
. include "../../devel/libatomic/buildlink3.mk"
.endif
.endif