diff options
author | grant <grant@pkgsrc.org> | 2004-06-27 12:04:45 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2004-06-27 12:04:45 +0000 |
commit | 11aa6c5c5da92b9eda7ea52c52e428466da42cce (patch) | |
tree | 2343a761c13350bc22011d6f98b2cee880c80b10 /net | |
parent | 84fa22a6769d867a38955a58d045bd4a70d29c50 (diff) | |
download | pkgsrc-11aa6c5c5da92b9eda7ea52c52e428466da42cce.tar.gz |
on Solaris, binaries that use libpcap.a always need -lnsl and -lsocket
for the socket functions.
Diffstat (limited to 'net')
-rw-r--r-- | net/libpcap/buildlink3.mk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/net/libpcap/buildlink3.mk b/net/libpcap/buildlink3.mk index 266ab6c3527..4bb4f6cb4a3 100644 --- a/net/libpcap/buildlink3.mk +++ b/net/libpcap/buildlink3.mk @@ -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 @@ BUILDLINK_PACKAGES+= libpcap .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/+$//} |