Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/libfastjson Add -lm to LIBS on NetBSD. The li...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2bbb5c46a66e
branches:  trunk
changeset: 436416:2bbb5c46a66e
user:      jmcneill <jmcneill%pkgsrc.org@localhost>
date:      Sun Aug 02 12:08:35 2020 +0000

description:
Add -lm to LIBS on NetBSD. The library uses modf and this is not available
in libc on all ports (specifically missing from aarch64 9.0) as it is not
built with the compat code.

Bump pkg revision.

diffstat:

 textproc/libfastjson/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 0e976b8fcc2c -r 2bbb5c46a66e textproc/libfastjson/Makefile
--- a/textproc/libfastjson/Makefile     Sun Aug 02 12:08:23 2020 +0000
+++ b/textproc/libfastjson/Makefile     Sun Aug 02 12:08:35 2020 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.9 2020/05/27 19:37:43 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2020/08/02 12:08:35 jmcneill Exp $
 
 DISTNAME=      libfastjson-0.99.8
+PKGREVISION=   1
 CATEGORIES=    textproc
 MASTER_SITES=  http://download.rsyslog.com/libfastjson/
 
@@ -16,4 +17,11 @@
 
 PKGCONFIG_OVERRIDE+=   libfastjson.pc.in
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+# NetBSD libc without compat modf in libc requires libm
+LIBS+=         -lm
+.endif
+
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index