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.
This commit is contained in:
parent
3999ab46cb
commit
3af10fa841
1 changed files with 9 additions and 1 deletions
|
@ -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 @@ USE_TOOLS+= pkg-config
|
|||
|
||||
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"
|
||||
|
|
Loading…
Reference in a new issue