Fix build of CVS head on Solaris (bug #5527)
authorMark Spencer <markster@digium.com>
Sun, 30 Oct 2005 07:24:27 +0000 (07:24 +0000)
committerMark Spencer <markster@digium.com>
Sun, 30 Oct 2005 07:24:27 +0000 (07:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6895 65c4cc65-6c06-0410-ace0-fbb531ad65f3

utils/Makefile

index 0f4cd44..a07a39d 100755 (executable)
@@ -32,6 +32,7 @@ endif
 
 ifeq (${OSARCH},SunOS)
   SOL=../strcompat.o
+  SOLLIBS=-lsocket -lnsl
 endif
 
 all: depend $(TARGET)
@@ -66,7 +67,7 @@ smsq: smsq.o
        $(CC) $(CFLAGS) -o smsq ${SOL} smsq.o -lpopt
 
 streamplayer: streamplayer.o
-       $(CC) $(CFLAGS) -o streamplayer ${SOL} streamplayer.o
+       $(CC) $(CFLAGS) -o streamplayer ${SOL} streamplayer.o ${SOLLIBS}
 
 ifneq ($(wildcard .depend),)
   include .depend