From 60e4e4e448d489e80b53a46169052246e8dae91a Mon Sep 17 00:00:00 2001 From: obache Date: Wed, 29 Sep 2010 12:27:47 +0000 Subject: Add some tricks to build on Solaris. PR#43924. --- net/host/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3