From f490c4e0f5888963a01fa99fe94a464d44223199 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sun, 16 Aug 2020 23:21:37 +0300 Subject: [PATCH] Makefile.defs: Fixed libs option for FreeBSD --- src/Makefile.defs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Makefile.defs b/src/Makefile.defs index 44fb9d665f0..1094593b151 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)