Explorar o código

utils/sercmd: set SRNAME at compile time

- it is set to sip server name (e.g., ser, kamailio)
- it is used to build the default path to ctl file used to communicate
  with sip server via ctl module
- reported by Henning Westerholt
Daniel-Constantin Mierla %!s(int64=14) %!d(string=hai) anos
pai
achega
1b58b26b7c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      utils/sercmd/Makefile

+ 1 - 1
utils/sercmd/Makefile

@@ -22,7 +22,7 @@ endif #ifneq (,$(MAKECMDGOALS))
 
 # erase common DEFS (not needed)
 C_DEFS:=
-DEFS:= -DNAME='"$(NAME)"' -DVERSION='"$(RELEASE)"' \
+DEFS:= -DNAME='"$(NAME)"' -DSRNAME='"$(MAIN_NAME)"' -DVERSION='"$(RELEASE)"' \
 		$(filter -D%HAVE -DARCH% -DOS% -D__CPU% -D__OS%, $(DEFS))
 
 # use proper libs (we can't rely on LIBS value since we might be called