summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiedi <wiedi@pkgsrc.org>2017-06-28 09:36:20 +0000
committerwiedi <wiedi@pkgsrc.org>2017-06-28 09:36:20 +0000
commit266031af2faf2663294fa39ca54ceedf4bfd98b2 (patch)
treee73bb4af5d900b43bd5615bf2ca396cf5ea8cd36
parent98a9511e7de7e53c0d6838ed5cb846758c3c361d (diff)
downloadpkgsrc-266031af2faf2663294fa39ca54ceedf4bfd98b2.tar.gz
fix build on SunOS
-rw-r--r--net/istgt/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/istgt/Makefile b/net/istgt/Makefile
index 7b295e1a7ca..88022da5997 100644
--- a/net/istgt/Makefile
+++ b/net/istgt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2016/10/02 14:03:09 mef Exp $
+# $NetBSD: Makefile,v 1.17 2017/06/28 09:36:20 wiedi Exp $
#
DISTNAME= istgt-20141125
@@ -31,6 +31,9 @@ CONF_FILES= ${EG_DIR}/auth.conf ${PKG_SYSCONFDIR}/auth.conf \
RCD_SCRIPTS= istgt
INSTALLATION_DIRS+= bin ${EG_DIR} ${PKGMANDIR}/man1
+CPPFLAGS.SunOS+= -D_POSIX_PTHREAD_SEMANTICS
+LDFLAGS.SunOS+= -lsocket -lnsl -fstack-protector
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/istgt ${DESTDIR}${PREFIX}/bin/istgt
${INSTALL_PROGRAM} ${WRKSRC}/src/istgtcontrol \