It seems that the compilation issue is due to our removal of include/pthread.h and lib/libpthread.a. The linker finds a version in the mingw folder and tried to use it, leading to conflicts.
On the other hand, the lib/libpthread.a file from the opensuse package is incorrect and looks like a link to another lib (it only contains a text with libpthreadGC2.a). Replacing it with a copy of libpthreadGC2.a and reintroducing include/pthread.h fixed the issue for me and aspell compiled correctly.
I'm now trying to compile Inkscape with Aspell activated.
It seems that the compilation issue is due to our removal of include/pthread.h and lib/libpthread.a. The linker finds a version in the mingw folder and tried to use it, leading to conflicts.
On the other hand, the lib/libpthread.a file from the opensuse package is incorrect and looks like a link to another lib (it only contains a text with libpthreadGC2.a). Replacing it with a copy of libpthreadGC2.a and reintroducing include/pthread.h fixed the issue for me and aspell compiled correctly.
I'm now trying to compile Inkscape with Aspell activated.