-
Notifications
You must be signed in to change notification settings - Fork 160
/
Copy pathatomic64.mk
33 lines (27 loc) · 896 Bytes
/
atomic64.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $NetBSD: atomic64.mk,v 1.10 2024/05/21 14:14:37 tsutsui 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
# Non-NetBSD vendors tend to include libatomic as part of gcc.
.if ${OPSYS} == "NetBSD" && \
(${MACHINE_ARCH} == "m68k" || \
${MACHINE_ARCH} == "mipsel" || \
${MACHINE_ARCH} == "mipseb" || \
${MACHINE_ARCH} == "powerpc" || \
${MACHINE_ARCH} == "sh3el" || \
${MACHINE_ARCH} == "sh3eb" || \
${MACHINE_ARCH} == "sparc" || \
${MACHINE_ARCH} == "vax" || \
!empty(MACHINE_ARCH:Mearm*))
. include "../../devel/libatomic/buildlink3.mk"
.endif
.endif