After some effort I was able to adjust the OpenSC build system to
build win64 binaries that may actually work. I don't have a machine to
test it, and waiting for feedback, but I thought I post some results
I wrote a script to build the mingw cross compiler, it is available at
, in order to make it work use binutils CVS head and gcc-4.3.2.
binutils heads is required to avoid incorrect DLL linkage. A required
patch is available at bug#6987 .
The OpenSC build is available at , it cross compiles the following
In order to make libtool detect the pe-x86-64, a fix should be added
to ltmain.sh (reported) of every package that uses libtool:
sed -i 's/architecture: i386)?'\''/architecture: i386)?|file format
The greatest challenge was OpenSSL, and in order to merge it I think
we should address the SIGALRM and other invalid signals that resides
in mingw include files. bug#2182468 . It compiles without assembly
and without uplink. patch at . It also revealed the binutils issue.
In order to compile OpenSC components I am using:
CHOST=x86_64-pc-mingw32 CBUILD=i686-pc-iinux-gnu \
Thank you for the great work!