Sha256: b52783089b1133d8eeb376c84477ca5f7d94990221f64b1a739761f11203a5c3

Contents?: true

Size: 919 Bytes

Versions: 15

Compression:

Stored size: 919 Bytes

Contents

CROSS-COMPILING FOR WINDOWS

Based on http://eigenclass.org/hiki.rb?cross+compiling+rcovrt


*) Install the MinGW cross-compiler

    Debian: apt-get install mingw32 mingw32-binutils mingw32-runtime

*) Download & extract a ruby distribution archive

*) Double the backslashes in the ALT_SEPARATOR definition in Makefile.in

*) Build & install it:

    env ac_cv_func_getpgrp_void=no \
       ac_cv_func_setpgrp_void=yes \
       rb_cv_negative_time_t=no \
       ac_cv_func_memcmp_working=yes \
       rb_cv_binary_elf=no \
       ./configure \
       --host=i586-mingw32msvc \
       --target=i386-mingw32 \
       --build=i686-linux \
       --prefix=~/ruby-mingw32

    make ruby

    make install

*) Build the extension (rake will build spidermonkey for you)

    # Remove any native binaries that are already built
    rake clean

    rake build CROSS=MINGW32 CROSSLIB=~/ruby-mingw32/lib/ruby/1.8/i386-mingw32

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
jbarnette-johnson-1.0.0.200806240111 cross-compile.txt
jbarnette-johnson-1.0.0.200807291507 cross-compile.txt
jbarnette-johnson-1.0.0.200808062051 cross-compile.txt
jbarnette-johnson-1.0.0.200808062111 cross-compile.txt
jbarnette-johnson-1.0.0.200811251942 cross-compile.txt
jbarnette-johnson-1.0.0.20081126120511 cross-compile.txt
jbarnette-johnson-1.0.0.20090127202936 cross-compile.txt
jbarnette-johnson-1.0.0.20090225110820 cross-compile.txt
jbarnette-johnson-1.0.0.20090326122910 cross-compile.txt
jbarnette-johnson-1.0.0.20090326154650 docs/cross-compile.txt
jbarnette-johnson-1.0.0.20090326161333 docs/cross-compile.txt
jbarnette-johnson-1.0.0.20090402144841 docs/cross-compile.txt
jbarnette-johnson-1.0.0.20090402155420 docs/cross-compile.txt
johnson-1.1.1 docs/cross-compile.txt
johnson-1.1.0 docs/cross-compile.txt