From 70cedacdde512d2ed5984eec242c55f3239b73fc Mon Sep 17 00:00:00 2001 From: markster Date: Tue, 14 Dec 2004 23:36:30 +0000 Subject: Merge slimey's Solaris compatibility (with small mods) (bug #2740) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4446 f38db490-d61c-443f-a65b-d21fe96a405b --- agi/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'agi/Makefile') diff --git a/agi/Makefile b/agi/Makefile index 2f87df5f8..0d8a35922 100755 --- a/agi/Makefile +++ b/agi/Makefile @@ -15,6 +15,11 @@ AGIS=agi-test.agi eagi-test eagi-sphinx-test CFLAGS+= +LIBS= +ifeq ($(OSARCH),SunOS) +LIBS=-lsocket -lnsl ../strcompat.o +endif + all: depend $(AGIS) install: all @@ -22,10 +27,10 @@ install: all for x in $(AGIS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(AGI_DIR) ; done eagi-test: eagi-test.o - $(CC) $(CFLAGS) -o eagi-test eagi-test.o + $(CC) $(CFLAGS) -o eagi-test eagi-test.o $(LIBS) eagi-sphinx-test: eagi-sphinx-test.o - $(CC) $(CFLAGS) -o eagi-sphinx-test eagi-sphinx-test.o + $(CC) $(CFLAGS) -o eagi-sphinx-test eagi-sphinx-test.o $(LIBS) clean: rm -f *.so *.o look .depend eagi-test eagi-sphinx-test -- cgit v1.2.3