Skip to content

Commit

Permalink
Makefile.defs: Fixed libs option for FreeBSD
Browse files Browse the repository at this point in the history
(cherry picked from commit f490c4e)
  • Loading branch information
dwagin authored and miconda committed Aug 26, 2020
1 parent 67979e0 commit 0efd0d6
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 0efd0d6

Please sign in to comment.