Module: sip-router
Branch: kamailio_3.0
Commit: 09f89961914b6461a626e9eed970bdafca9102a8
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=09f8996…
Author: Vincent Stemen <vince.lists(a)ngtek.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Wed Aug 11 16:49:40 2010 +0200
sercmd: Patch to add Dragonfly BSD support (makefile)
Signed-off-by: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
(cherry picked from commit c39dd933973ba24b449c2b35756c593c093d5f4f)
---
utils/sercmd/Makefile | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/utils/sercmd/Makefile b/utils/sercmd/Makefile
index fbf616d..7072a7d 100644
--- a/utils/sercmd/Makefile
+++ b/utils/sercmd/Makefile
@@ -29,7 +29,12 @@ DEFS:= -DNAME='"$(NAME)"'
-DVERSION='"$(RELEASE)"' \
# from a module Makefile)
#LIBS:=$(filter-out -lfl -ldl -lpthread -lssl -lcrypto, $(LIBS))
-LIBS:= -lresolv
+ifeq ($(OS), dragonfly)
+ LIBS:= -L$(LOCALBASE)/lib
+else
+ LIBS:= -lresolv
+endif
+
ifeq ($(OS), solaris)
LIBS+= -L$(LOCALBASE)/lib -lxnet -lnsl
endif