linker error on mingw build

Hello,

I try to build HDF5 (1.8.9) under MinGW / MSYS and get on the make call a linker error:
  CCLD libhdf5.la
Creating library file: .libs/libhdf5.dll.a
.libs/H5FDstdio.o:H5FDstdio.c:(.text+0x154c): undefined reference to `_ftruncate
64'
collect2.exe: error: ld returned 1 exit status

I run from MinGW shell "configure" and "make".
How can I fix this problem?

Thanks

Phil