summaryrefslogtreecommitdiff
path: root/net/host/Makefile
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-09-29 12:27:47 +0000
committerobache <obache@pkgsrc.org>2010-09-29 12:27:47 +0000
commitfa40281d313c0642ed354119dc8d58449403b109 (patch)
treecbee195a34bafd9e518dab2b692ede1b826d7509 /net/host/Makefile
parent94559239502f8aa8a8e7af8870b6c4f0e14d4825 (diff)
downloadpkgsrc-fa40281d313c0642ed354119dc8d58449403b109.tar.gz
Add some tricks to build on Solaris.
PR#43924.
Diffstat (limited to 'net/host/Makefile')
-rw-r--r--net/host/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/host/Makefile b/net/host/Makefile
index fe3de004838..e06e602f977 100644
--- a/net/host/Makefile
+++ b/net/host/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2010/09/29 12:24:48 obache Exp $
+# $NetBSD: Makefile,v 1.21 2010/09/29 12:27:47 obache Exp $
DISTNAME= host-20040812
CATEGORIES= net
@@ -25,6 +25,11 @@ CPPFLAGS+= -DBIND_8_COMPAT
BUILDLINK_TRANSFORM+= rm:-Wl,--warn-common
BUILDLINK_TRANSFORM+= rm:-static
.endif
+.if ${OPSYS} == "SunOS"
+LDFLAGS+= -lresolve -lsocket -lnsl
+BUILDLINK_TRANSFORM+= rm:-Wl,--warn-common
+BUILDLINK_TRANSFORM+= rm:-static
+.endif
.if !empty(MACHINE_PLATFORM:MIRIX-5*)
CPPFLAGS+= -DIRIX5
.endif