pkgsrc-Bugs archive

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

pkg/47546: pkgsrc: linux support for net/host



>Number:         47546
>Category:       pkg
>Synopsis:       pkgsrc: linux support for net/host
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 08 23:35:00 +0000 2013
>Originator:     Rafael Kitover
>Release:        
>Organization:
>Environment:
Linux amsems2wb-Stage 2.6.32-122.el6.i686 #1 SMP Wed Mar 9 23:47:29 EST 2011 
i686 i686 i386 GNU/Linux
>Description:
net/host does not compile on linux
>How-To-Repeat:
cd net/host
bmake install clean clean-depends
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/host/Makefile,v
retrieving revision 1.25
diff -u -r1.25 Makefile
--- Makefile    23 Oct 2012 17:18:27 -0000      1.25
+++ Makefile    8 Feb 2013 23:29:02 -0000
@@ -31,6 +31,10 @@
 BUILDLINK_TRANSFORM+=  rm:-Wl,--warn-common
 BUILDLINK_TRANSFORM+=  rm:-static
 .endif
+.if ${OPSYS} == "Linux"
+LDFLAGS+=      -lresolv -lnsl
+BUILDLINK_TRANSFORM+=  rm:-static
+.endif
 .if !empty(MACHINE_PLATFORM:MIRIX-5*)
 CPPFLAGS+=     -DIRIX5
 .endif



Home | Main Index | Thread Index | Old Index