[sr-dev] git:master:40ecbb12: Merge pull request #2442 from dwagin/master

GitHub noreply at github.com
Mon Aug 17 11:25:34 CEST 2020


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: GitHub <noreply at github.com>
Date: 2020-08-17T11:25:27+02:00

Merge pull request #2442 from dwagin/master

Makefile.defs: Fixed libs option for FreeBSD

---

Modified: src/Makefile.defs

---

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

---

diff --git a/src/Makefile.defs b/src/Makefile.defs
index 44fb9d665f..1094593b15 100644
--- a/src/Makefile.defs
+++ b/src/Makefile.defs
@@ -1981,12 +1981,11 @@ ifeq ($(OS), freebsd)
 	ifeq ($(RAW_SOCKS), yes)
 		C_DEFS+= -DUSE_RAW_SOCKS
 	endif
+	LIBS= -lm   # resolv and dlopen is in libc
 	ifneq ($(found_lock_method), yes)
 		C_DEFS+= -DUSE_PTHREAD_MUTEX  # try pthread sems
 		found_lock_method=yes
-		LIBS+= -pthread   #dlopen is in libc
-	else
-		LIBS=   #dlopen is in libc
+		LIBS+= -pthread
 	endif
 	# check for ver >= 4.1
 	ifeq ($(shell [ $(OSREL_N) -gt 4001 ] && echo has_kqueue), has_kqueue)




More information about the sr-dev mailing list