pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/libpcap on Solaris, binaries that use libpcap.a al...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/69ea40d3efd9
branches:  trunk
changeset: 477153:69ea40d3efd9
user:      grant <grant%pkgsrc.org@localhost>
date:      Sun Jun 27 12:04:45 2004 +0000

description:
on Solaris, binaries that use libpcap.a always need -lnsl and -lsocket
for the socket functions.

diffstat:

 net/libpcap/buildlink3.mk |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 8a4316317413 -r 69ea40d3efd9 net/libpcap/buildlink3.mk
--- a/net/libpcap/buildlink3.mk Sun Jun 27 11:42:43 2004 +0000
+++ b/net/libpcap/buildlink3.mk Sun Jun 27 12:04:45 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.12 2004/03/10 17:57:14 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.13 2004/06/27 12:04:45 grant Exp $
 
 BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH}+
 LIBPCAP_BUILDLINK3_MK:=        ${LIBPCAP_BUILDLINK3_MK}+
@@ -13,6 +13,16 @@
 .if !empty(LIBPCAP_BUILDLINK3_MK:M+)
 BUILDLINK_DEPENDS.libpcap+=    libpcap>=0.7.2
 BUILDLINK_PKGSRCDIR.libpcap?=  ../../net/libpcap
+
+.  include "../../mk/bsd.prefs.mk"
+
+# on Solaris, we always need libnsl and libsocket because libpcap.a
+# references symbols in them.
+.  if ${OPSYS} == "SunOS"
+BUILDLINK_LDADD.libpcap+=      -lnsl -lsocket
+LDFLAGS+=                      ${BUILDLINK_LDADD.libpcap}
+.  endif
+
 .endif # LIBPCAP_BUILDLINK3_MK
 
 BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH:S/+$//}



Home | Main Index | Thread Index | Old Index