blob: 419a9b0c88c8eb70625bb40faeca8f7124b5a527 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# $NetBSD: atomic64.mk,v 1.2 2021/01/01 00:06:29 gutteridge 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
CXXFLAGS+= -march=i586
. endif
.endif
.if ${MACHINE_ARCH} == "powerpc"
. include "../../devel/libatomic/buildlink3.mk"
.endif
.endif
|