diff options
Diffstat (limited to 'devel/libusb1/Makefile')
-rw-r--r-- | devel/libusb1/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/devel/libusb1/Makefile b/devel/libusb1/Makefile index 8adf3fa0586..738b52005b9 100644 --- a/devel/libusb1/Makefile +++ b/devel/libusb1/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.18 2019/06/22 11:30:11 nia Exp $ +# $NetBSD: Makefile,v 1.19 2019/08/06 08:50:28 maya Exp $ DISTNAME= libusb-1.0.22 PKGNAME= ${DISTNAME:S/libusb/libusb1/} +PKGREVISION= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libusb/} EXTRACT_SUFX= .tar.bz2 @@ -20,6 +21,13 @@ USE_LIBTOOL= yes USE_TOOLS+= pkg-config MAKE_JOBS_SAFE= no +.include "../../mk/compiler.mk" +.if !empty(PKGSRC_COMPILER:Mclang) +# Uses undefined behaviour +BUILDLINK_TRANSFORM+= opt:-O2:-O1 +CFLAGS+= -fno-strict-aliasing +.endif + PKGCONFIG_OVERRIDE+= libusb-1.0.pc.in # systemd dependency |