[Vala] Cross-compiling with MinGW



Hey all,

I'm on Debian, trying to cross-compile my Vala code using MinGW
(gcc-mingw-w64 package) like this:

CC=i686-w64-mingw32-gcc valac --pkg gtk+-3.0 --pkg cairo --pkg pango
--pkg gee-1.0 -g --save-temps -o foo bar.vala

However, the compiler complains about the unix-style pthread linking
directive, which is obviously invalid on Windows:

i686-w64-mingw32-gcc: error: unrecognized option '-pthread'
error: cc exited with status 256

I've grepped all the vapis on my system for "pthread", but haven't
found a single mention; same goes for the valac sources. Where does
this come from?

Regards,

Leszek



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]