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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-06-09T12:00:48+02:00

evapi: Makefile - link with libevent

---

Modified: src/modules/evapi/Makefile

---

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

---

diff --git a/src/modules/evapi/Makefile b/src/modules/evapi/Makefile
index 446814ec2ca..7242b465461 100644
--- a/src/modules/evapi/Makefile
+++ b/src/modules/evapi/Makefile
@@ -8,23 +8,23 @@ NAME=evapi.so
 ifeq ($(CROSS_COMPILE),)
        BUILDER = $(shell which pkg-config)
 ifneq ($(BUILDER),)
-       PKGLIBUV = $(shell $(BUILDER) --exists libev > /dev/null 2>&1 ; echo 
$$? )
-ifneq ($(PKGLIBUV),0)
+       PKGLIBEVENT = $(shell $(BUILDER) --exists libevent > /dev/null 2>&1 ; 
echo $$? )
+ifneq ($(PKGLIBEVENT),0)
        BUILDER =
 endif
 endif
 endif
 
 ifneq ($(BUILDER),)
-       DEFS += $(shell $(BUILDER) --cflags libev)
-       LIBS += $(shell $(BUILDER) --libs libev)
+       DEFS += $(shell $(BUILDER) --cflags libevent)
+       LIBS += $(shell $(BUILDER) --libs libevent)
 else
 ifneq (,$(findstring darwin,$(OS)))
        DEFS += -I/opt/local/include -I$(LOCALBASE)/include
-       LIBS += -L/opt/local/lib -L$(LOCALBASE)/lib -lev
+       LIBS += -L/opt/local/lib -L$(LOCALBASE)/lib -levent
 else
        DEFS += -I$(LOCALBASE)/include -I$(SYSBASE)/include
-       LIBS += -L$(LOCALBASE)/lib -L$(SYSBASE)/lib -lev
+       LIBS += -L$(LOCALBASE)/lib -L$(SYSBASE)/lib -levent
 endif
 endif
 

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to