use LDFLAGS and LIBS properly, and allow dependencies to provide LDFLAGS if needed...
[asterisk/asterisk.git] / agi / Makefile
index 907d5ef..e65357c 100644 (file)
@@ -16,7 +16,7 @@
 AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi
 
 ifeq ($(OSARCH),SunOS)
-  LDFLAGS+=-lsocket -lnsl ../strcompat.o
+  LIBS+=-lsocket -lnsl ../strcompat.o
 endif
 
 include $(ASTTOPDIR)/Makefile.rules