diff --git a/utest/Makefile b/utest/Makefile index f99035440..eecd9d199 100644 --- a/utest/Makefile +++ b/utest/Makefile @@ -26,10 +26,7 @@ endif #this does not work with OpenMP nor with native Windows or Android threads # FIXME TBD if this works on OSX, SunOS, POWER and zarch ifeq ($(OSNAME), $(filter $(OSNAME),Linux CYGWIN_NT)) -ifneq ($(USE_OPENMP), 1) -OBJS += test_fork.o -endif -OBJS += test_post_fork.o +OBJS += test_fork.o test_post_fork.o endif ifeq ($(C_COMPILER), PGI) diff --git a/utest/test_fork.c b/utest/test_fork.c index bd531e7fb..b1cd380e6 100644 --- a/utest/test_fork.c +++ b/utest/test_fork.c @@ -64,7 +64,7 @@ static void check_dgemm(double *a, double *b, double *result, double *expected, CTEST(fork, safety) { -#ifndef BUILD_DOUBLE +#if !defined(BUILD_DOUBLE) || (defined(_OPENMP) && _OPENMP < 201811) exit(0); #else blasint n = 1000;