Skip to content

Commit

Permalink
Merge pull request #2442 from dwagin/master
Browse files Browse the repository at this point in the history
Makefile.defs: Fixed libs option for FreeBSD
  • Loading branch information
miconda committed Aug 17, 2020
2 parents 46bb60b + f490c4e commit 40ecbb1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Makefile.defs
Expand Up @@ -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)
Expand Down

0 comments on commit 40ecbb1

Please sign in to comment.