Hi, I'm currently testing Mingw-w64 as a cross-compiler from Linux (RHEL6) to Windows using gcc-4.8.2. Following the multilib instructions from mingw-w64-howto-build-adv.txt, I succeeded in compiling the 32-bit libpthreadGC2.a library but could not use it to link my programs. Looking into the Makefiles from mingw-w64-v3.0.0, I've found that dlltool is given the --as-flags=--32 option when building 32-bit libraries. Using this to build libpthreadGC2.a solved my problem.
Might be worth a fix such as the following: --- mingw-w64-howto-build-adv.txt.old 2013-12-20 22:22:13.403930934 -0500 +++ mingw-w64-howto-build-adv.txt 2013-12-20 22:22:31.056931917 -0500 @@ -214,7 +214,7 @@ to ======================================================================= AR = $(CROSS)ar -DLLTOOL = $(CROSS)dlltool -m i386 +DLLTOOL = $(CROSS)dlltool --as-flags=--32 -m i386 CC = $(CROSS)gcc -m32 CXX = $(CROSS)g++ -m32 RANLIB = $(CROSS)ranlib -- Daniel Villeneuve ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
