libusb1: Link nvpair library on illumos

This commit is contained in:
nia 2024-02-17 21:57:50 +00:00
parent d25db40cbc
commit 2738fe7177
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.33 2024/02/16 08:13:13 nia Exp $
# $NetBSD: Makefile,v 1.34 2024/02/17 21:57:50 nia Exp $
DISTNAME= libusb-1.0.27
PKGNAME= ${DISTNAME:S/libusb/libusb1/}
@ -32,6 +32,11 @@ BUILDLINK_TRANSFORM+= opt:-O2:-O1
CFLAGS+= -fno-strict-aliasing
.endif
# XXX should be only illumos
.if ${OPSYS} == "SunOS" && ${OPSYS_VERSION} >= 051100
LDFLAGS+= -lnvpair
.endif
PKGCONFIG_OVERRIDE+= libusb-1.0.pc.in
# systemd dependency