Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/mpl/bind/lib/libisc Avoid clang errors about atomic...
details:   https://anonhg.NetBSD.org/src/rev/b4675c6c2dd7
branches:  trunk
changeset: 449008:b4675c6c2dd7
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Feb 18 19:30:18 2019 +0000
description:
Avoid clang errors about atomics on arm
diffstat:
 external/mpl/bind/lib/libisc/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 614ca4b09ab9 -r b4675c6c2dd7 external/mpl/bind/lib/libisc/Makefile
--- a/external/mpl/bind/lib/libisc/Makefile     Mon Feb 18 19:03:12 2019 +0000
+++ b/external/mpl/bind/lib/libisc/Makefile     Mon Feb 18 19:30:18 2019 +0000
@@ -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 @@
 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}
 
Home |
Main Index |
Thread Index |
Old Index