mirror of
https://github.com/intel/isa-l.git
synced 2025-01-05 22:59:52 +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
|
# Check for pthreads
|
||||||
have_threads ?= $(shell printf "int main(void){return 0;}\n" | $(CC) -x c - -o /dev/null -lpthread && echo y )
|
ifeq ($(arch),mingw)
|
||||||
THREAD_LD_$(have_threads) := -lpthread
|
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
|
THREAD_CFLAGS_$(have_threads) := -DHAVE_THREADS
|
||||||
|
|
||||||
progs: $(bin_PROGRAMS)
|
progs: $(bin_PROGRAMS)
|
||||||
|
Loading…
Reference in New Issue
Block a user