Module: kamailio
Branch: master
Commit: c4b280bd5b5b0cfb8d34ecef296972f2a043791e
URL:
https://github.com/kamailio/kamailio/commit/c4b280bd5b5b0cfb8d34ecef296972f…
Author: drTr0jan <drtr0jan(a)yandex.ru>
Committer: Daniel-Constantin Mierla <miconda(a)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/c4b280bd5b5b0cfb8d34ecef296972f…
Patch:
https://github.com/kamailio/kamailio/commit/c4b280bd5b5b0cfb8d34ecef296972f…
---
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