On Sat, May 20, 2006 at 06:57:51PM +0200, Abdelrazak Younes wrote: > Sorry for not testing before Bo but there's still some problem with mingw: > 1) CFLAGS=-O3 works correctly but not CFLAGS="-O3 -g". Scons gives "-O3 > -g" to gcc including the double-quotes.
Maybe scons tries to be too smart when seeing the space. Should be easy to fix. > 2) nls=yes gettext=included is correctly taken into account but -lintl > is passed. So the mingw intl dll is used as opposed as libs/libintl.a, Hmm, using -lsomelib a dynamic library takes precedence. When both dynamic and static libs are used, this problem could be solved by directly passing the path to the static libs and using -l for dynamic ones. If the libintl.a is the only problematic library, maybe when requesting the included one it could be renamed libincluded_intl.a or similar. Then, -lincluded_intl should work. > Then the final linking fails due to some recent dependencies introduced > by Joost and JMarc: > > debug\libs/libqt4.a(qfont_loader.o):qfont_loader.C:(.text+0x30d): > undefined reference to [EMAIL PROTECTED]' > debug\libs/libqt4.a(qfont_loader.o):qfont_loader.C:(.text+0x663): > undefined reference to [EMAIL PROTECTED]' > debug\libs/libqt4.a(qfont_loader.o):qfont_loader.C:(.text+0x9b9): > undefined reference to [EMAIL PROTECTED]' > debug\libs/libintl.a(dcigettext.o):dcigettext.c:(.text+0x427): undefined > reference to `getwd' Here -lgdi32 is missing. The `getwd' undefined reference hints to a missing HAVE_GETCWD, though. On Cygwin, both getwd and getcwd are present, so I was missing this one. -- Enrico