Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/mit/libcbor/lib Fix vax and platforms that don't ha...
details: https://anonhg.NetBSD.org/src/rev/db5b7125505f
branches: trunk
changeset: 745526:db5b7125505f
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 04 17:22:49 2020 +0000
description:
Fix vax and platforms that don't have ldexp in libc (aarch64, ppc64, ia64)
diffstat:
external/mit/libcbor/lib/Makefile | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r 5fb484b7ad04 -r db5b7125505f external/mit/libcbor/lib/Makefile
--- a/external/mit/libcbor/lib/Makefile Wed Mar 04 16:17:23 2020 +0000
+++ b/external/mit/libcbor/lib/Makefile Wed Mar 04 17:22:49 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2020/03/03 23:32:58 mlelstv Exp $
+# $NetBSD: Makefile,v 1.3 2020/03/04 17:22:49 christos Exp $
NOLINT=
NOMAN=
@@ -10,10 +10,18 @@
CPPFLAGS+= -I${DIST}/src -DHAVE_ENDIAN_H -I. -DEIGHT_BYTE_SIZE_T
+.if ${MACHINE} == "vax"
+# vax does not have NaN (no ieee754, so this code will not work anyway)
+CPPFLAGS+=-DNAN=INFINITY
+.endif
+
LIB= cbor
SRCS+= cbor.c
+# For ldexp
+LIBDPLIBS = m ${NETBSDSRCDIR}/lib/libm
+
VERS_FILE=${DIST}/CMakeLists.txt
.for i in MAJOR MINOR PATCH
Home |
Main Index |
Thread Index |
Old Index