I'm getting this linker error when building Base 3.15.6 with mingw:
/usr/bin/x86_64-w64-mingw32-g++ -o Com.dll -shared -Wl,--out-implib,libCom.dll.a -L/home/travis/.cache/base-R3.15.6/lib/windows-x64-mingw -m64 -static-libgcc -static-libstdc++ asLib.obj asTrapWrite.obj bucketLib.obj postfix.obj calcPerform.obj cvtFast.obj resourceLib.obj epicsOnce.obj epicsSingletonMutex.obj dbmf.obj ellLib.obj ellSort.obj envSubr.obj envData.obj errlog.obj errSymLib.obj errSymTbl.obj fdmgr.obj fdManager.obj freeListLib.obj gpHashLib.obj iocsh.obj registry.obj libComRegister.obj iocLog.obj logClient.obj macCore.obj macEnv.obj macUtil.obj alarmString.obj aToIPAddr.obj adjustment.obj cantProceed.obj epicsConvert.obj epicsExit.obj epicsStdlib.obj epicsString.obj truncateFile.obj ipAddrToAsciiAsynchronous.obj epicsUnitTest.obj epicsThread.obj epicsMutex.obj epicsEvent.obj epicsTime.obj epicsMessageQueue.obj epicsMath.obj epicsAtomicOSD.obj epicsGeneralTime.obj osiClockTime.obj osdSock.obj osdSockAddrReuse.obj osiSock.obj systemCallIntMech.obj epicsSocketConvertErrnoToString.obj osdAssert.obj osdFindSymbol.obj osdInterrupt.obj osdPoolStatus.obj osdSignal.obj osdEnv.obj epicsReadline.obj epicsTempFile.obj epicsStdio.obj osdStdio.obj osdThread.obj osdThreadExtra.obj osdThreadHooks.obj osdMutex.obj osdSpin.obj osdEvent.obj osdTime.obj osdProcess.obj osdNetIntf.obj osdMessageQueue.obj devLibVME.obj devLibVMEOSD.obj epicsStackTrace.obj osdBackTrace.obj osdFindAddr.obj poolJob.obj threadPool.obj epicsRingPointer.obj epicsRingBytes.obj taskwd.obj epicsTimer.obj timer.obj timerQueue.obj timerQueueActive.obj timerQueueActiveMgr.obj timerQueuePassive.obj yajl.obj yajl_alloc.obj yajl_buf.obj yajl_encode.obj yajl_gen.obj yajl_lex.obj yajl_parser.obj epicsGetopt.obj setThreadName.obj forceBadAllocException.obj Com.coff -lws2_32 -ladvapi32 -luser32 -lws2_32
osiClockTime.obj:osiClockTime.c:(.text+0xb4): undefined reference to `clock_gettime'
osiClockTime.obj:osiClockTime.c:(.text+0x33b): undefined reference to `clock_gettime'
collect2: error: ld returned 1 exit status
R3.14.12.8 as well