Hi Karel,
you can have a look at these two branches.
https://github.com/libtom/libtomcrypt/commits/fix/mingw64
https://github.com/libtom/libtommath/commits/fix/mingw64
The changes aren't really fixes, since they simply disable the
optimizations, but it works for me with the cygwin stock mingw 64bit
gcc.
> $ x86_64-w64-mingw32-gcc -v
> Using built-in specs.
> COLLECT_GCC=x86_64-w64-mingw32-gcc
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-w64-mingw32/4.5.3/lto-wrapper.exe
> Target: x86_64-w64-mingw32
> Configured with: ...
> Thread model: win32
> gcc version 4.5.3 (GCC)
Both, testme.sh for LTC and "test vs mtest" for LTM finish successfully!
> $ x86_64-w64-mingw32-objdump.exe -t test.exe
> test.exe: file format pei-x86-64
There's still a warning left in src/prngs/rng_get_bytes.c but I
currently don't have the time to fix it.
The same for bn_mp_get_int.c and bn_mp_reduce.c when trying to use
MP_64BIT.
Any feedback?
Volunteers to fix the issues?
Steffen
--
Steffen Jaeckel
www.libtom.org https://github.com/libtom
#libtom on
irc.freenode.net