Index: Mk/Uses/compiler.mk =================================================================== --- Mk/Uses/compiler.mk +++ Mk/Uses/compiler.mk @@ -96,8 +96,17 @@ .if ${_COMPILER_ARGS:Mopenmp} .if ${COMPILER_TYPE} == clang -USE_GCC= yes +.if ${ARCH} == amd64 +.include "${USESDIR}/localbase.mk" +.if ${COMPILER_VERSION} < 38 +CFLAGS+= -D_OPENMP +.endif +LDFLAGS+= -lomp +LIB_DEPENDS+= libomp.so.0:devel/openmp +.else +USE_GCC= yes CHOSEN_COMPILER_TYPE= gcc +.endif .endif .endif Index: math/openblas/Makefile =================================================================== --- math/openblas/Makefile +++ math/openblas/Makefile @@ -73,6 +73,7 @@ .endif .if ${PORT_OPTIONS:MOPENMP} +USE_GCC= yes USES+= compiler:openmp BUILDFLAGS_THREAD+= USE_OPENMP=1 .endif