Browse code

Makefile.defs: Fixed libs option for FreeBSD

(cherry picked from commit f490c4e0f5888963a01fa99fe94a464d44223199)
(cherry picked from commit 0efd0d63a8f8d7b644d0eba13552778d3b746c67)

Dmitry authored on 16/08/2020 20:21:37 • Daniel-Constantin Mierla committed on 08/09/2020 07:59:55
Showing 1 changed files
... ...
@@ -1981,12 +1981,11 @@ ifeq ($(OS), freebsd)
1981 1981
 	ifeq ($(RAW_SOCKS), yes)
1982 1982
 		C_DEFS+= -DUSE_RAW_SOCKS
1983 1983
 	endif
1984
+	LIBS= -lm   # resolv and dlopen is in libc
1984 1985
 	ifneq ($(found_lock_method), yes)
1985 1986
 		C_DEFS+= -DUSE_PTHREAD_MUTEX  # try pthread sems
1986 1987
 		found_lock_method=yes
1987
-		LIBS+= -pthread   #dlopen is in libc
1988
-	else
1989
-		LIBS=   #dlopen is in libc
1988
+		LIBS+= -pthread
1990 1989
 	endif
1991 1990
 	# check for ver >= 4.1
1992 1991
 	ifeq ($(shell [ $(OSREL_N) -gt 4001 ] && echo has_kqueue), has_kqueue)