Need -lsocket on solaris

This commit is contained in:
bouyer 2002-10-27 13:40:30 +00:00
parent 6969199226
commit a23b1b2b8b
3 changed files with 19 additions and 7 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2002/10/21 13:05:01 wiz Exp $
# $NetBSD: Makefile,v 1.4 2002/10/27 13:40:30 bouyer Exp $
#
DISTNAME= wmMoonClock-1.27
@ -14,5 +14,13 @@ USE_GMAKE= YES
USE_X11BASE= YES
WRKSRC= ${WRKDIR}/${DISTNAME}/Src
MAKE_FLAGS+= EXTRA_LOCAL_LIBS=${EXTRA_LOCAL_LIBS}
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
EXTRA_LOCAL_LIBS= -lsocket
.endif
.include "../../graphics/xpm/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.3 2001/10/12 20:44:51 tron Exp $
$NetBSD: distinfo,v 1.4 2002/10/27 13:40:30 bouyer Exp $
SHA1 (wmMoonClock-1.27.tar.gz) = bbc27a11ff99505fe4b872019f214f305cee6c5b
Size (wmMoonClock-1.27.tar.gz) = 155197 bytes
SHA1 (patch-aa) = ebec99603ef1590e4d42978bf759680ebf3aca70
SHA1 (patch-aa) = 6b9d2459c7b92bee200c06f543a85ce429b8cd7b

View file

@ -1,8 +1,8 @@
$NetBSD: patch-aa,v 1.2 2001/10/12 20:44:52 tron Exp $
$NetBSD: patch-aa,v 1.3 2002/10/27 13:40:30 bouyer Exp $
--- Makefile.orig Tue Mar 23 03:20:32 1999
+++ Makefile Fri Oct 12 22:41:34 2001
@@ -1,8 +1,8 @@
+++ Makefile Thu Oct 17 00:31:50 2002
@@ -1,11 +1,11 @@
CC = gcc
CFLAGS = -O2
-INCDIR = -I/usr/X11R6/include/X11
@ -13,7 +13,11 @@ $NetBSD: patch-aa,v 1.2 2001/10/12 20:44:52 tron Exp $
+LIBDIR = -L${PREFIX}/lib -Wl,-R${PREFIX}/lib -L${X11BASE}/lib -Wl,-R${X11BASE}/lib
# for Linux
LIBS = -lXpm -lX11 -lXext
-LIBS = -lXpm -lX11 -lXext
+LIBS = -lXpm -lX11 -lXext ${EXTRA_LOCAL_LIBS}
# for Solaris
# LIBS = -lXpm -lX11 -lXext -lsocket
@@ -31,6 +31,5 @@
rm -f wmMoonClock