mirror of
https://github.com/intel/isa-l.git
synced 2024-12-12 09:23:50 +01:00
Assume pthread on MinGW
Signed-off-by: Taiju Yamada <tyamada@bi.a.u-tokyo.ac.jp>
This commit is contained in:
parent
bd1ce56c43
commit
b1e6ac3c66
8
make.inc
8
make.inc
@ -201,8 +201,12 @@ ASFLAGS += -DAS_FEATURE_LEVEL=$(as_feature_level) $(D_HAVE_AS_KNOWS_AVX512_y)
|
||||
|
||||
|
||||
# Check for pthreads
|
||||
have_threads ?= $(shell printf "int main(void){return 0;}\n" | $(CC) -x c - -o /dev/null -lpthread && echo y )
|
||||
THREAD_LD_$(have_threads) := -lpthread
|
||||
ifeq ($(arch),mingw)
|
||||
have_threads ?= y
|
||||
else
|
||||
have_threads ?= $(shell printf "int main(void){return 0;}\n" | $(CC) -x c - -o /dev/null -pthread && echo y )
|
||||
endif
|
||||
THREAD_LD_$(have_threads) := -pthread
|
||||
THREAD_CFLAGS_$(have_threads) := -DHAVE_THREADS
|
||||
|
||||
progs: $(bin_PROGRAMS)
|
||||
|
Loading…
Reference in New Issue
Block a user