From 60227eabe109042ef55a6e1eec29dd416cce34b5 Mon Sep 17 00:00:00 2001 From: Sebastian Wiedenroth Date: Sat, 7 Dec 2013 20:53:40 +0100 Subject: [PATCH] net/modpcap: fix build on SmartOS --- net/modpcap/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/modpcap/Makefile b/net/modpcap/Makefile index df9193a50401e..0bd72ae443803 100644 --- a/net/modpcap/Makefile +++ b/net/modpcap/Makefile @@ -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/