diff --git a/src/lib/ims/Makefile b/src/lib/ims/Makefile index 482404ca36e..9c9539bc745 100644 --- a/src/lib/ims/Makefile +++ b/src/lib/ims/Makefile @@ -11,9 +11,9 @@ BUGFIX_VER=0 DEFS+=-DSER ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/app_python3/Makefile b/src/modules/app_python3/Makefile index c357ebc09ee..03c3da142c5 100644 --- a/src/modules/app_python3/Makefile +++ b/src/modules/app_python3/Makefile @@ -12,15 +12,15 @@ ifeq ($(PYTHON3),) PYTHON3=python endif -PYTHON3CONFIG=$(shell which ${PYTHON3}-config) +PYTHON3CONFIG:=$(shell which ${PYTHON3}-config) ifeq ($(PYTHON3CONFIG),) python_version_full := $(wordlist 2,4,$(subst ., ,$(shell ${PYTHON3} --version 2>&1))) python_version_major := $(word 1,${python_version_full}) python_version_minor := $(word 2,${python_version_full}) PYTHON3 = python${python_version_major}.${python_version_minor} -PYTHON3CONFIG=$(shell which ${PYTHON3}-config) +PYTHON3CONFIG:=$(shell which ${PYTHON3}-config) ifeq ($(PYTHON3CONFIG),) -PYTHON3CONFIG=${PYTHON3}-config +PYTHON3CONFIG:=${PYTHON3}-config endif endif diff --git a/src/modules/app_python3s/Makefile b/src/modules/app_python3s/Makefile index 8edf4292406..ef50c9aae74 100644 --- a/src/modules/app_python3s/Makefile +++ b/src/modules/app_python3s/Makefile @@ -12,15 +12,15 @@ ifeq ($(PYTHON3),) PYTHON3=python endif -PYTHON3CONFIG=$(shell which ${PYTHON3}-config) +PYTHON3CONFIG:=$(shell which ${PYTHON3}-config) ifeq ($(PYTHON3CONFIG),) python_version_full := $(wordlist 2,4,$(subst ., ,$(shell ${PYTHON3} --version 2>&1))) python_version_major := $(word 1,${python_version_full}) python_version_minor := $(word 2,${python_version_full}) PYTHON3 = python${python_version_major}.${python_version_minor} -PYTHON3CONFIG=$(shell which ${PYTHON3}-config) +PYTHON3CONFIG:=$(shell which ${PYTHON3}-config) ifeq ($(PYTHON3CONFIG),) -PYTHON3CONFIG=${PYTHON3}-config +PYTHON3CONFIG:=${PYTHON3}-config endif endif diff --git a/src/modules/auth_ephemeral/Makefile b/src/modules/auth_ephemeral/Makefile index bdfde40de3a..1eecce8b971 100644 --- a/src/modules/auth_ephemeral/Makefile +++ b/src/modules/auth_ephemeral/Makefile @@ -7,7 +7,7 @@ auto_gen= NAME=auth_ephemeral.so ifeq ($(CROSS_COMPILE),) -SSL_BUILDER=$(shell \ +SSL_BUILDER:=$(shell \ if pkg-config --exists libssl; then \ echo 'pkg-config libssl'; \ fi) diff --git a/src/modules/auth_identity/Makefile b/src/modules/auth_identity/Makefile index 80791d7080e..daf9ea4dbb2 100644 --- a/src/modules/auth_identity/Makefile +++ b/src/modules/auth_identity/Makefile @@ -4,13 +4,13 @@ auto_gen= NAME=auth_identity.so ifeq ($(CROSS_COMPILE),) -CURL_BUILDER=$(shell \ +CURL_BUILDER:=$(shell \ if pkg-config --exists libcurl; then \ echo 'pkg-config libcurl'; \ else \ which curl-config; \ fi) -SSL_BUILDER=$(shell \ +SSL_BUILDER:=$(shell \ if pkg-config --exists libssl; then \ echo 'pkg-config libssl'; \ fi) diff --git a/src/modules/cdp/Makefile b/src/modules/cdp/Makefile index e2d0211f654..6ba565ab7df 100644 --- a/src/modules/cdp/Makefile +++ b/src/modules/cdp/Makefile @@ -5,9 +5,9 @@ auto_gen= NAME=cdp.so ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/cnxcc/Makefile b/src/modules/cnxcc/Makefile index 708e9f68842..63730d128d6 100644 --- a/src/modules/cnxcc/Makefile +++ b/src/modules/cnxcc/Makefile @@ -9,7 +9,7 @@ auto_gen= NAME=cnxcc.so ifeq ($(CROSS_COMPILE),) -HIREDIS_BUILDER = $(shell \ +HIREDIS_BUILDER:= $(shell \ if pkg-config --exists hiredis; then \ echo 'pkg-config hiredis'; \ fi) @@ -30,7 +30,7 @@ endif endif ifeq ($(CROSS_COMPILE),) -LEVENT_BUILDER = $(shell \ +LEVENT_BUILDER:= $(shell \ if pkg-config --exists libevent; then \ echo 'pkg-config libevent'; \ fi) diff --git a/src/modules/cplc/Makefile b/src/modules/cplc/Makefile index dde31ef5046..0d50957982d 100644 --- a/src/modules/cplc/Makefile +++ b/src/modules/cplc/Makefile @@ -6,9 +6,9 @@ auto_gen= NAME=cplc.so ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/crypto/Makefile b/src/modules/crypto/Makefile index d64875b4c41..9cd2a778042 100644 --- a/src/modules/crypto/Makefile +++ b/src/modules/crypto/Makefile @@ -7,7 +7,7 @@ auto_gen= NAME=crypto.so ifeq ($(CROSS_COMPILE),) -SSL_BUILDER=$(shell \ +SSL_BUILDER:=$(shell \ if pkg-config --exists libssl; then \ echo 'pkg-config libssl'; \ fi) diff --git a/src/modules/db_postgres/Makefile b/src/modules/db_postgres/Makefile index dc5ca62b9b4..59c04db7d63 100644 --- a/src/modules/db_postgres/Makefile +++ b/src/modules/db_postgres/Makefile @@ -10,7 +10,7 @@ NAME=db_postgres.so # CROSS_COMPILE=true ifeq ($(CROSS_COMPILE),) -LIBPQ_BUILDER = $(shell \ +LIBPQ_BUILDER:= $(shell \ if pkg-config --exists libpq; then \ echo 'pkg-config libpq'; \ fi) diff --git a/src/modules/db_redis/Makefile b/src/modules/db_redis/Makefile index 179bc6f4068..8dab90ab74e 100644 --- a/src/modules/db_redis/Makefile +++ b/src/modules/db_redis/Makefile @@ -37,7 +37,7 @@ endif endif DEFS+=$(HIREDISDEFS) -LIBS=$(HIREDISLIBS) +LIBS:=$(HIREDISLIBS) ifneq ($(HIREDIS_CLUSTER_BUILDER),) HIREDISCLUSTERDEFS = $(shell $(HIREDIS_CLUSTER_BUILDER) --cflags) diff --git a/src/modules/dialplan/Makefile b/src/modules/dialplan/Makefile index abb4bf8388b..e231a47e2a2 100644 --- a/src/modules/dialplan/Makefile +++ b/src/modules/dialplan/Makefile @@ -6,7 +6,7 @@ auto_gen= NAME=dialplan.so ifeq ($(CROSS_COMPILE),) -PCRE_BUILDER = $(shell \ +PCRE_BUILDER:= $(shell \ if pkg-config --exists libcre; then \ echo 'pkg-config libpcre'; \ else \ diff --git a/src/modules/gzcompress/Makefile b/src/modules/gzcompress/Makefile index 5e77a0b7f44..275a0e173e5 100644 --- a/src/modules/gzcompress/Makefile +++ b/src/modules/gzcompress/Makefile @@ -9,7 +9,7 @@ auto_gen= NAME=gzcompress.so ifeq ($(CROSS_COMPILE),) - BUILDER = $(shell which pkg-config) + BUILDER:= $(shell which pkg-config) endif ifneq ($(BUILDER),) diff --git a/src/modules/http_async_client/Makefile b/src/modules/http_async_client/Makefile index 1af95ac0ff5..35aa36c9641 100644 --- a/src/modules/http_async_client/Makefile +++ b/src/modules/http_async_client/Makefile @@ -6,7 +6,7 @@ auto_gen= NAME=http_async_client.so ifeq ($(CROSS_COMPILE),) -CURL_BUILDER=$(shell \ +CURL_BUILDER:=$(shell \ if pkg-config --exists libcurl; then \ echo 'pkg-config libcurl'; \ else \ @@ -32,10 +32,10 @@ endif ifeq ($(LEVENT_BUILDER),) LEVENTDEFS=-I$(LOCALBASE)/include -I$(SYSBASE)/include - LEVENTLIBS=-L$(LOCALBASE)/lib -levent + LEVENTLIBS:=-L$(LOCALBASE)/lib -levent else LEVENTDEFS = $(shell $(LEVENT_BUILDER) --cflags) - LEVENTLIBS = $(shell $(LEVENT_BUILDER) --libs) + LEVENTLIBS:= $(shell $(LEVENT_BUILDER) --libs) endif DEFS+=$(CURLDEFS) $(LEVENTDEFS) diff --git a/src/modules/http_client/Makefile b/src/modules/http_client/Makefile index a0b38a9c0de..8160c9a163b 100644 --- a/src/modules/http_client/Makefile +++ b/src/modules/http_client/Makefile @@ -9,7 +9,7 @@ auto_gen= NAME=http_client.so ifeq ($(CROSS_COMPILE),) -CURL_BUILDER=$(shell \ +CURL_BUILDER:=$(shell \ if pkg-config --exists libcurl; then \ echo 'pkg-config libcurl'; \ else \ diff --git a/src/modules/ims_auth/Makefile b/src/modules/ims_auth/Makefile index 628632badb7..02547cc45e0 100644 --- a/src/modules/ims_auth/Makefile +++ b/src/modules/ims_auth/Makefile @@ -9,9 +9,9 @@ auto_gen= NAME=ims_auth.so ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/ims_icscf/Makefile b/src/modules/ims_icscf/Makefile index ffc05f295b3..4a84b57123f 100644 --- a/src/modules/ims_icscf/Makefile +++ b/src/modules/ims_icscf/Makefile @@ -8,9 +8,9 @@ auto_gen= NAME=ims_icscf.so ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/ims_isc/Makefile b/src/modules/ims_isc/Makefile index d0244d001cc..6c25a40962f 100644 --- a/src/modules/ims_isc/Makefile +++ b/src/modules/ims_isc/Makefile @@ -8,9 +8,9 @@ auto_gen= NAME=ims_isc.so ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/ims_registrar_pcscf/Makefile b/src/modules/ims_registrar_pcscf/Makefile index 8fae1cab1af..19e9a730c52 100644 --- a/src/modules/ims_registrar_pcscf/Makefile +++ b/src/modules/ims_registrar_pcscf/Makefile @@ -9,9 +9,9 @@ auto_gen= NAME=ims_registrar_pcscf.so ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/ims_registrar_scscf/Makefile b/src/modules/ims_registrar_scscf/Makefile index 6f66edd7ec7..6d23c714b9a 100644 --- a/src/modules/ims_registrar_scscf/Makefile +++ b/src/modules/ims_registrar_scscf/Makefile @@ -9,9 +9,9 @@ auto_gen= NAME=ims_registrar_scscf.so ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/jansson/Makefile b/src/modules/jansson/Makefile index 7362ec18071..e45ba72e283 100644 --- a/src/modules/jansson/Makefile +++ b/src/modules/jansson/Makefile @@ -9,7 +9,7 @@ auto_gen= NAME=jansson.so ifeq ($(CROSS_COMPILE),) -JNS_BUILDER=$(shell \ +JNS_BUILDER:=$(shell \ if pkg-config --exists jansson; then \ echo 'pkg-config jansson'; \ fi) diff --git a/src/modules/kazoo/Makefile b/src/modules/kazoo/Makefile index b7b1e1615cd..038a749f52b 100644 --- a/src/modules/kazoo/Makefile +++ b/src/modules/kazoo/Makefile @@ -6,7 +6,7 @@ auto_gen= NAME=kazoo.so JLIB=json -BUILDER = $(shell which pkg-config) +BUILDER:= $(shell which pkg-config) ifeq ($(BUILDER),) JSONC=$(shell ls $(SYSBASE)/include/lib/libjson*.so $(LOCALBASE)/lib/libjson*.so 2>/dev/null | grep json-c) else diff --git a/src/modules/lcr/Makefile b/src/modules/lcr/Makefile index 56be2e3a741..c31688aa3c0 100644 --- a/src/modules/lcr/Makefile +++ b/src/modules/lcr/Makefile @@ -9,7 +9,7 @@ auto_gen= NAME=lcr.so ifeq ($(CROSS_COMPILE),) -PCRE_BUILDER = $(shell \ +PCRE_BUILDER:= $(shell \ if pkg-config --exists libcre; then \ echo 'pkg-config libpcre'; \ else \ diff --git a/src/modules/log_systemd/Makefile b/src/modules/log_systemd/Makefile index b1ab763c286..cf027bbba8c 100644 --- a/src/modules/log_systemd/Makefile +++ b/src/modules/log_systemd/Makefile @@ -6,7 +6,7 @@ auto_gen= NAME=log_systemd.so ifeq ($(CROSS_COMPILE),) -SYSTEMD_BUILDER=$(shell \ +SYSTEMD_BUILDER:=$(shell \ if pkg-config --exists libsystemd; then \ echo 'pkg-config libsystemd'; \ fi) diff --git a/src/modules/lost/Makefile b/src/modules/lost/Makefile index b847094e1ca..05f2e030c68 100755 --- a/src/modules/lost/Makefile +++ b/src/modules/lost/Makefile @@ -9,14 +9,14 @@ auto_gen= NAME=lost.so ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) endif -CURL_BUILDER=$(shell \ +CURL_BUILDER:=$(shell \ if pkg-config --exists libcurl; then \ echo 'pkg-config libcurl'; \ else \ diff --git a/src/modules/lwsc/Makefile b/src/modules/lwsc/Makefile index 4201bfe42a1..c971e5ec035 100644 --- a/src/modules/lwsc/Makefile +++ b/src/modules/lwsc/Makefile @@ -7,7 +7,7 @@ auto_gen= NAME=lwsc.so ifeq ($(CROSS_COMPILE),) -LWSC_BUILDER=$(shell \ +LWSC_BUILDER:=$(shell \ if pkg-config --exists libwebsockets; then \ echo 'pkg-config libwebsockets'; \ fi) diff --git a/src/modules/ndb_redis/Makefile b/src/modules/ndb_redis/Makefile index 66c34617fd9..9019ccb89b7 100644 --- a/src/modules/ndb_redis/Makefile +++ b/src/modules/ndb_redis/Makefile @@ -6,7 +6,7 @@ auto_gen= NAME=ndb_redis.so ifeq ($(CROSS_COMPILE),) -HIREDIS_BUILDER = $(shell \ +HIREDIS_BUILDER:= $(shell \ if pkg-config --exists hiredis; then \ echo 'pkg-config hiredis'; \ fi) diff --git a/src/modules/osp/Makefile b/src/modules/osp/Makefile index 06dfc70052c..65072eeede7 100644 --- a/src/modules/osp/Makefile +++ b/src/modules/osp/Makefile @@ -8,7 +8,7 @@ auto_gen= NAME=osp.so ifeq ($(CROSS_COMPILE),) -SSL_BUILDER=$(shell \ +SSL_BUILDER:=$(shell \ if pkg-config --exists libssl; then \ echo 'pkg-config libssl'; \ fi) diff --git a/src/modules/outbound/Makefile b/src/modules/outbound/Makefile index 70d4102c01b..8a83e47087f 100644 --- a/src/modules/outbound/Makefile +++ b/src/modules/outbound/Makefile @@ -10,18 +10,15 @@ ifeq ($(CROSS_COMPILE),) endif ifneq ($(BUILDER),) -SSL_BUILDER=$(shell \ +SSL_BUILDER:=$(shell \ if pkg-config --exists libssl; then \ echo 'pkg-config libssl'; \ fi) -CRYPTO_BUILDER=$(shell \ +CRYPTO_BUILDER:=$(shell \ if pkg-config --exists libcrypto; then \ echo 'pkg-config libcrypto'; \ fi) -endif - -ifneq ($(BUILDER),) ifneq ($(SSL_BUILDER),) DEFS += $(shell $(SSL_BUILDER) --cflags) diff --git a/src/modules/presence/Makefile b/src/modules/presence/Makefile index 3065f9d3a23..657f29f26f9 100644 --- a/src/modules/presence/Makefile +++ b/src/modules/presence/Makefile @@ -6,9 +6,9 @@ auto_gen= NAME=presence.so ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/presence_conference/Makefile b/src/modules/presence_conference/Makefile index 7fc0efc9c83..8d563783788 100644 --- a/src/modules/presence_conference/Makefile +++ b/src/modules/presence_conference/Makefile @@ -6,9 +6,9 @@ auto_gen= NAME=presence_conference.so ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/presence_dialoginfo/Makefile b/src/modules/presence_dialoginfo/Makefile index 4674a409fba..1ba5c28e944 100644 --- a/src/modules/presence_dialoginfo/Makefile +++ b/src/modules/presence_dialoginfo/Makefile @@ -6,9 +6,9 @@ auto_gen= NAME=presence_dialoginfo.so ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/presence_reginfo/Makefile b/src/modules/presence_reginfo/Makefile index b3bad627bda..262ae87a67b 100644 --- a/src/modules/presence_reginfo/Makefile +++ b/src/modules/presence_reginfo/Makefile @@ -9,9 +9,9 @@ auto_gen= NAME=presence_reginfo.so ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/presence_xml/Makefile b/src/modules/presence_xml/Makefile index 8d1fd9a8780..7ac3cba18a6 100644 --- a/src/modules/presence_xml/Makefile +++ b/src/modules/presence_xml/Makefile @@ -7,9 +7,9 @@ NAME=presence_xml.so LIBS= ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/pua/Makefile b/src/modules/pua/Makefile index cb45cee17e2..780875178d0 100644 --- a/src/modules/pua/Makefile +++ b/src/modules/pua/Makefile @@ -7,9 +7,9 @@ NAME=pua.so LIBS= ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/pua_bla/Makefile b/src/modules/pua_bla/Makefile index 75970244aec..9afb91e96c6 100755 --- a/src/modules/pua_bla/Makefile +++ b/src/modules/pua_bla/Makefile @@ -6,9 +6,9 @@ auto_gen= NAME=pua_bla.so ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/pua_dialoginfo/Makefile b/src/modules/pua_dialoginfo/Makefile index 18d2e2fc826..69e24729062 100644 --- a/src/modules/pua_dialoginfo/Makefile +++ b/src/modules/pua_dialoginfo/Makefile @@ -7,9 +7,9 @@ NAME=pua_dialoginfo.so LIBS= ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/pua_reginfo/Makefile b/src/modules/pua_reginfo/Makefile index d150c952dc2..7ccaf97b0f9 100644 --- a/src/modules/pua_reginfo/Makefile +++ b/src/modules/pua_reginfo/Makefile @@ -9,9 +9,9 @@ NAME=pua_reginfo.so LIBS= ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/pua_usrloc/Makefile b/src/modules/pua_usrloc/Makefile index bbf9c0bfb4b..d0e5369e780 100644 --- a/src/modules/pua_usrloc/Makefile +++ b/src/modules/pua_usrloc/Makefile @@ -7,9 +7,9 @@ NAME=pua_usrloc.so LIBS= ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/pua_xmpp/Makefile b/src/modules/pua_xmpp/Makefile index 8b53b35ebdd..b4e74ec6073 100644 --- a/src/modules/pua_xmpp/Makefile +++ b/src/modules/pua_xmpp/Makefile @@ -7,9 +7,9 @@ NAME= pua_xmpp.so LIBS= ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/regex/Makefile b/src/modules/regex/Makefile index 3b8758a0392..d5277fa9567 100644 --- a/src/modules/regex/Makefile +++ b/src/modules/regex/Makefile @@ -5,7 +5,7 @@ auto_gen= NAME=regex.so ifeq ($(CROSS_COMPILE),) -PCRE_BUILDER = $(shell \ +PCRE_BUILDER:= $(shell \ if pkg-config --exists libcre; then \ echo 'pkg-config libpcre'; \ else \ diff --git a/src/modules/rls/Makefile b/src/modules/rls/Makefile index e5c5e6a73b1..7ad0851fb4f 100644 --- a/src/modules/rls/Makefile +++ b/src/modules/rls/Makefile @@ -9,9 +9,9 @@ auto_gen= NAME=rls.so ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/slack/Makefile b/src/modules/slack/Makefile index a4f0c1ff814..1fb1e7a0210 100644 --- a/src/modules/slack/Makefile +++ b/src/modules/slack/Makefile @@ -9,7 +9,7 @@ auto_gen= NAME=slack.so ifeq ($(CROSS_COMPILE),) -CURL_BUILDER=$(shell \ +CURL_BUILDER:=$(shell \ if pkg-config --exists libcurl; then \ echo 'pkg-config libcurl'; \ else \ diff --git a/src/modules/systemdops/Makefile b/src/modules/systemdops/Makefile index 7af1f5efd3a..8bbfdfc2d2f 100644 --- a/src/modules/systemdops/Makefile +++ b/src/modules/systemdops/Makefile @@ -6,7 +6,7 @@ auto_gen= NAME=systemdops.so ifeq ($(CROSS_COMPILE),) -SYSTEMD_BUILDER=$(shell \ +SYSTEMD_BUILDER:=$(shell \ if pkg-config --exists libsystemd; then \ echo 'pkg-config libsystemd'; \ fi) diff --git a/src/modules/tls/Makefile b/src/modules/tls/Makefile index 9112150b8e9..11d3de7d7c8 100644 --- a/src/modules/tls/Makefile +++ b/src/modules/tls/Makefile @@ -16,11 +16,11 @@ LIBSSL_STATIC_SRCLIB ?= no LIBSSL_STATIC_SRCPATH ?= /usr/local/src/openssl ifeq ($(CROSS_COMPILE),) -SSL_BUILDER=$(shell \ +SSL_BUILDER:=$(shell \ if pkg-config --exists libssl; then \ echo 'pkg-config libssl'; \ fi) -CRYPTO_BUILDER=$(shell \ +CRYPTO_BUILDER:=$(shell \ if pkg-config --exists libcrypto; then \ echo 'pkg-config libcrypto'; \ fi) diff --git a/src/modules/tlsa/Makefile b/src/modules/tlsa/Makefile index 28b5c2692d3..9999d68e15b 100644 --- a/src/modules/tlsa/Makefile +++ b/src/modules/tlsa/Makefile @@ -18,11 +18,11 @@ LIBSSL_STATIC_SRCPATH ?= /usr/local/src/openssl # LIBSSL_STATIC_SRCPATH ?= /usr/lib/x86_64-linux-gnu/ ifeq ($(CROSS_COMPILE),) -SSL_BUILDER=$(shell \ +SSL_BUILDER:=$(shell \ if pkg-config --exists libssl; then \ echo 'pkg-config libssl'; \ fi) -CRYPTO_BUILDER=$(shell \ +CRYPTO_BUILDER:=$(shell \ if pkg-config --exists libcrypto; then \ echo 'pkg-config libcrypto'; \ fi) diff --git a/src/modules/topos_redis/Makefile b/src/modules/topos_redis/Makefile index 74c5456af1b..c508b4f7354 100644 --- a/src/modules/topos_redis/Makefile +++ b/src/modules/topos_redis/Makefile @@ -6,7 +6,7 @@ auto_gen= NAME=topos_redis.so ifeq ($(CROSS_COMPILE),) -HIREDIS_BUILDER = $(shell \ +HIREDIS_BUILDER:= $(shell \ if pkg-config --exists hiredis; then \ echo 'pkg-config hiredis'; \ fi) diff --git a/src/modules/utils/Makefile b/src/modules/utils/Makefile index add1c86364c..6259d570c9a 100644 --- a/src/modules/utils/Makefile +++ b/src/modules/utils/Makefile @@ -9,9 +9,9 @@ auto_gen= NAME=utils.so ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/uuid/Makefile b/src/modules/uuid/Makefile index 141a350fcb5..5c3f705115b 100644 --- a/src/modules/uuid/Makefile +++ b/src/modules/uuid/Makefile @@ -6,7 +6,7 @@ auto_gen= NAME=uuid.so ifeq ($(CROSS_COMPILE),) -BUILDER = $(shell \ +BUILDER:= $(shell \ if pkg-config --exists uuid; then \ echo 'pkg-config uuid'; \ fi) diff --git a/src/modules/websocket/Makefile b/src/modules/websocket/Makefile index 99b1fe1f8c3..9de7fe830e1 100644 --- a/src/modules/websocket/Makefile +++ b/src/modules/websocket/Makefile @@ -9,7 +9,7 @@ NAME=websocket.so EMBEDDED_UTF8_DECODE ?= 0 ifeq ($(CROSS_COMPILE),) -SSL_BUILDER=$(shell \ +SSL_BUILDER:=$(shell \ if pkg-config --exists libssl; then \ echo 'pkg-config libssl'; \ fi) diff --git a/src/modules/xcap_server/Makefile b/src/modules/xcap_server/Makefile index 0afbb2d6436..44a9810d9f3 100644 --- a/src/modules/xcap_server/Makefile +++ b/src/modules/xcap_server/Makefile @@ -9,9 +9,9 @@ auto_gen= NAME=xcap_server.so ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/xhttp_pi/Makefile b/src/modules/xhttp_pi/Makefile index 79654878136..a58988e8c12 100644 --- a/src/modules/xhttp_pi/Makefile +++ b/src/modules/xhttp_pi/Makefile @@ -8,9 +8,9 @@ DEFS += LIBS += ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/xmlops/Makefile b/src/modules/xmlops/Makefile index ec6a4e1fa67..1c54d9b29cf 100644 --- a/src/modules/xmlops/Makefile +++ b/src/modules/xmlops/Makefile @@ -9,9 +9,9 @@ NAME=xmlops.so LIBS= ifeq ($(CROSS_COMPILE),) -PKGCFGTOOL=$(shell which xml2-config) +PKGCFGTOOL:=$(shell which xml2-config) ifeq ($(PKGCFGTOOL),) -PKGCFGTOOL=$(shell \ +PKGCFGTOOL:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi) diff --git a/src/modules/xmlrpc/Makefile b/src/modules/xmlrpc/Makefile index 7a61d1025d0..e38e4cfcef4 100644 --- a/src/modules/xmlrpc/Makefile +++ b/src/modules/xmlrpc/Makefile @@ -6,9 +6,9 @@ auto_gen= NAME=xmlrpc.so ifeq ($(CROSS_COMPILE),) -XML2CFG=$(shell which xml2-config) +XML2CFG:=$(shell which xml2-config) ifeq ($(XML2CFG),) -XML2CFG=$(shell \ +XML2CFG:=$(shell \ if pkg-config --exists libxml-2.0; then \ echo 'pkg-config libxml-2.0'; \ fi)