tihmstar / tsschecker

a powerfull tool to check tss signing status of various devices and firmwares
GNU Lesser General Public License v3.0
738 stars 169 forks source link

Fix cross compiling for Windows/Mingw #155

Closed airsquared closed 4 years ago

airsquared commented 4 years ago

Cross compiling from Linux/macOS to Windows causes AC_FUNC_MALLOC and AC_FUNC_REALLOC to fail during configure and defines malloc and realloc as rpl_malloc and rpl_realloc, which then causes linking to fail.

This fix uses AC_CHECK_FUNCS to check for malloc and realloc instead.