[sr-dev] git:master:c4b280bd: phonenum: Makefile - support for FreeBSD build

Daniel-Constantin Mierla miconda at gmail.com
Thu Jan 20 12:27:16 CET 2022


Module: kamailio
Branch: master
Commit: c4b280bd5b5b0cfb8d34ecef296972f2a043791e
URL: https://github.com/kamailio/kamailio/commit/c4b280bd5b5b0cfb8d34ecef296972f2a043791e

Author: drTr0jan <drtr0jan at yandex.ru>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-01-20T12:27:09+01:00

phonenum: Makefile - support for FreeBSD build

- updated LIBS and DEFS variables, making them consistent with
the rest of modules;
- removed predefined CXX and LD variables.

---

Modified: src/modules/phonenum/Makefile

---

Diff:  https://github.com/kamailio/kamailio/commit/c4b280bd5b5b0cfb8d34ecef296972f2a043791e.diff
Patch: https://github.com/kamailio/kamailio/commit/c4b280bd5b5b0cfb8d34ecef296972f2a043791e.patch

---

diff --git a/src/modules/phonenum/Makefile b/src/modules/phonenum/Makefile
index 4f187fccf6..f465226a97 100644
--- a/src/modules/phonenum/Makefile
+++ b/src/modules/phonenum/Makefile
@@ -5,13 +5,11 @@ include ../../Makefile.defs
 auto_gen=
 NAME=phonenum.so
 
-CXX=g++
-LD=g++
-LIB_DIR = /opt/local/lib
+CXX?=g++
+LD?=g++
 
-LIBS= -L${LIB_DIR} cphonenumber.o -lphonenumber -lgeocoding
-
-DEFS+= -I/opt/local/include
+LIBS+=-L$(LOCALBASE)/lib cphonenumber.o -lphonenumber -lgeocoding
+DEFS+=-I$(LOCALBASE)/include
 
 CXXFLAGS=$(CFLAGS:-Wno-deprecated option=)
 CXXFLAGS+=-Wno-write-strings -Wno-deprecated -Wno-unused-function -Wno-sign-compare -Wno-strict-aliasing




More information about the sr-dev mailing list