Skip to content

Commit

Permalink
Fix build on SunOS. From Thomas Merkel in #13.
Browse files Browse the repository at this point in the history
  • Loading branch information
jperkin committed Aug 24, 2017
1 parent 7ef2825 commit 45fc8df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion security/p11-kit/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2016/04/04 17:34:56 joerg Exp $
# $NetBSD: Makefile,v 1.5 2017/08/24 14:50:19 jperkin Exp $
#

DISTNAME= p11-kit-0.22.1
Expand All @@ -16,12 +16,16 @@ DEPENDS= mozilla-rootcerts>=1.0.20150804nb1:../../security/mozilla-rootcerts
CONFIGURE_ARGS+= --with-trust-paths=${PREFIX}/share/mozilla-rootcerts/cacert.pem

GNU_CONFIGURE= yes
USE_LANGUAGES= c99
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config

# dirfd(3)
CFLAGS.NetBSD+= -D_NETBSD_SOURCE

CFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS
LDFLAGS.SunOS+= -lsocket -lnsl

PKGCONFIG_OVERRIDE+= p11-kit/p11-kit-1.pc.in

PKG_SYSCONFSUBDIR= pkcs11
Expand Down

0 comments on commit 45fc8df

Please sign in to comment.