Use -pthread on OpenBSD as well, and add it to CFLAGS in addition to LDFLAGS.
This commit is contained in:
parent
7612153c8b
commit
f4e0c4629c
|
@ -17,7 +17,8 @@ endif
|
|||
endif
|
||||
|
||||
ifeq ($(PTHREAD),yes)
|
||||
ifeq ($(SYSTEM),FreeBSD)
|
||||
ifneq ($(filter FreeBSD OpenBSD,$(SYSTEM)),)
|
||||
TMPCFLAGS += -pthread
|
||||
TMPLDFLAGS += -pthread
|
||||
else
|
||||
TMPLDFLAGS += -lpthread
|
||||
|
|
Loading…
Reference in New Issue