From: Nobuyoshi Nakada Date: 2008-03-24T10:32:40+09:00 Subject: Re: wrong sitearch definition for MinGW builds Hi, At Sun, 23 Mar 2008 09:36:54 +0900, Luis Lavena wrote in [ruby-core:15986]: > I've checked that the config.h generated by configure scripts list > RUBY_SITE_ARCHLIB as 'i386-msvcrt' instead of 'i386-mingw32' as > RUBY_ARCHLIB. It is intentional so that it could share third party extensions with the mswin32 version. > That could present some issues if new builds of MinGW that allow > target different MSVCRT version are used. It's checked by configure. AC_CACHE_CHECK(for mingw32 runtime DLL, rb_cv_msvcrt, [ AC_TRY_LINK([#include ], [FILE* volatile f = stdin; return 0;], [rb_cv_msvcrt=`$OBJDUMP -p conftest$ac_exeext | tr A-Z a-z | sed -n '/^[[ ]]*dll name: \(msvc.*\)\.dll$/{s//\1/p;q;}'`], [rb_cv_msvcrt=msvcrt]) test "$rb_cv_msvcrt" = "" && rb_cv_msvcrt=msvcrt]) > Also, in configure.in, if mingw is used as platform, the i386 is > automatically added, which is also wrong if you try to use mingw64 to > build x64 version of Ruby. Indeed, thank you. -- Nobu Nakada