Earlier this week, I've asked: > I'm in the process of updating my cross-compilation > environment from cygwin-1.5.12 to cygwin-1.5.24, mainly > because we have had code generation problems with > gcc-3.3.3-3 from the former. > > However, I get the following message > > No support for this host/target combination > > from gcc-3.4.4/libstdc++-v3/configure (crossconfig.m4), because > indeed cygwin is not mentioned in any of the clauses of the main > case statement.
I've finally found a way to get a working linux->cygwin cross-compiler. Here are the steps I've followed, for the record: 1) As I've seen in other mails, I've deleted the libstdc++-v3 directory from the gcc-g++ source distro. 2) I've downloaded the binary native distro for gcc-core, to find the exact configure options used (using the strings program on gcc.exe). 3) I've compiled/installed my gcc-g++ cross-compiler sans libstdc++-v3 using this configuration (especially, --enable-sjlj-exceptions). 4) I've downloaded the binary native distro for gcc-g++, in order to cp -r /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++ into $INSTALL/lib/gcc/i686-pc-cygwin/3.4.4/include, to cp /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/lib{std,sup}c++.{a,la} into $INSTALL/i686-pc-cygwin/lib and to edit the .la files to refer to my $INSTALL directory (for -L options in dependencies and the libdir value). -- Daniel Villeneuve Architecte en logiciel, RO, division AD OPT Software Architect, OR, AD OPT Division Kronos T: 514.345.0580 x 241 F: 514.345.0422 www.kronos.com Visitez/Visit: www.ad-opt.com Une expertise reconnue pour optimiser votre capital humain et votre performance en affaires (MC) Experts at Improving the Performance of People and Business (TM) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/