Avoid clang errors about atomics on arm
This commit is contained in:
parent
d3d3bf1ccf
commit
e6507199eb
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.3 2019/01/09 16:55:23 christos Exp $
|
||||
# $NetBSD: Makefile,v 1.4 2019/02/18 19:30:18 christos Exp $
|
||||
|
||||
LIB=isc
|
||||
#USE_SHLIBDIR= yes
|
||||
|
@ -44,6 +44,13 @@ CPPFLAGS.net.c= -Wno-error
|
|||
SRCS+= ipv6.c
|
||||
.endif
|
||||
|
||||
# On certain flavors of arm we don't have native atomics only ones
|
||||
# libcall ones which are inefficient. But this should not be an
|
||||
# error anyway.
|
||||
CPPFLAGS.mem.c+= ${${ACTIVE_CC} == "clang":? -Wno-error-atomic-alignment :}
|
||||
|
||||
|
||||
|
||||
LDADD+=-lz
|
||||
DPADD+=${LIBZ}
|
||||
|
||||
|
|
Loading…
Reference in New Issue