--- Makefile.orig 2018-12-24 15:10:10.617768000 +0300 +++ Makefile 2018-12-25 10:36:22.132481000 +0300 @@ -167,6 +167,11 @@ # issue 220865: MySQL developers forgot that FreeBSD != Linux @${REINPLACE_CMD} -e 's|%%FREEBSD_LOCAL_LIB%%|${LOCALBASE}/lib|g' \ ${WRKSRC}/configure.cmake +.if ${ARCH} == i386 +.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 40 + @${ECHO} 'SET(HAVE_GCC_ATOMIC_BUILTINS CACHE INTERNAL "")' >> ${WRKSRC}/cmake/os/${OPSYS}.cmake +.endif +.endif .if !defined(CLIENT_ONLY) post-install: