diff options
author | jperkin <jperkin> | 2013-12-10 14:01:49 +0000 |
---|---|---|
committer | jperkin <jperkin> | 2013-12-10 14:01:49 +0000 |
commit | df5b0675541641008e3d0e932b4ef9143e2b8c5d (patch) | |
tree | 216859ca6f8d8f7e091f3ca1af75fe7124db7a73 | |
parent | 36654fc6859666a42c1b4c882c946d679ac8a7ca (diff) | |
download | pkgsrc-df5b0675541641008e3d0e932b4ef9143e2b8c5d.tar.gz |
Add socket libraries on SunOS. Patch from Sebastian Wiedenroth.
-rw-r--r-- | net/modpcap/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/modpcap/Makefile b/net/modpcap/Makefile index df9193a5040..9de7e0f1954 100644 --- a/net/modpcap/Makefile +++ b/net/modpcap/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2013/02/06 19:30:58 jperkin Exp $ +# $NetBSD: Makefile,v 1.4 2013/12/10 14:01:49 jperkin Exp $ # DISTNAME= modcap.c @@ -16,8 +16,10 @@ AUTO_MKDIRS= yes WRKSRC= ${WRKDIR} +LDFLAGS.SunOS+= -lsocket -lnsl + do-build: - cd ${WRKSRC} && ${CC} -I${PREFIX}/include modcap.c -lm -lpcap -o modcap + cd ${WRKSRC} && ${CC} -I${PREFIX}/include modcap.c -lm -lpcap ${LDFLAGS} -o modcap do-install: ${INSTALL_PROGRAM} ${WRKSRC}/modcap ${DESTDIR}${PREFIX}/bin/ |