configure: check for -pthread vs -lpthread (#379)

This commit is contained in:
rofl0r
2021-04-30 16:15:30 +01:00
parent 918855deed
commit 6af2686a52
2 changed files with 10 additions and 1 deletions

View File

@ -30,7 +30,7 @@ GENH = src/version.h
CFLAGS += -Wall -O0 -g -std=c99 -D_GNU_SOURCE -pipe
NO_AS_NEEDED = -Wl,--no-as-needed
LIBDL = -ldl
LDFLAGS = -fPIC $(NO_AS_NEEDED) $(LIBDL) -lpthread
LDFLAGS = -fPIC $(NO_AS_NEEDED) $(LIBDL) $(PTHREAD)
INC =
PIC = -fPIC
AR = $(CROSS_COMPILE)ar