浏览代码

Merge pull request #2442 from dwagin/master

Makefile.defs: Fixed libs option for FreeBSD
Daniel-Constantin Mierla 5 年之前
父节点
当前提交
40ecbb120c
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/Makefile.defs

+ 2 - 3
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)