cross-compilation from Linux to Windows fails DL compilation
When cross-compiling ruby_1_8_7 branch under Ubuntu 10.04 (mingw32 cross compiler package), it fail with the following output:
make: Entering directory
/home/user/projects/oss/cross-build/ext/dl' Generating callback.func mkmf.rb can't find header files for ruby at ../ruby/ruby.h make: *** [callback.func] Error 1 make: Leaving directory /home/user/projects/oss/cross-build/ext/dl'
make: *** [all] Error 1
The configure options used:
sh ../ruby/configure --enable-shared --disable-install-doc --host=i586-mingw32msvc --target=i386-mingw32
Attached find config.log (zipped), Makefile and mkmf.log from dl.
Updated by luislavena (Luis Lavena) over 11 years ago
Please find attached a patch for this issue, is a backport of fake.rb from trunk as it defined top_srcdir relative to the builddir