Building static ruby.exe on Win32


#1

I’m trying to build my own statically linked ruby.exe using VC++. The
Makefile.sub builds a dynamically linked ruby.exe that depends on
msvcrt-ruby18.dll. I tried modifying the Makefile.sub to link to the
static library msvcrt-ruby18-static.lib, but I still end up with what
seems to be a dynamically linked ruby.exe (since it’s only 4608 bytes,
it has to be dynamically linked).

Does anyone know the recipe ?

Phil


(Shashank Date) #2

“Phil Tomson” intc_ctor@yahoo.com

I’m trying to build my own statically linked ruby.exe using VC++.

Does anyone know the recipe ?

A naive suggestion: will creating a simple "Win32 Console Application"
project and then adding all the required C files one by one as needed
do the job ?

Admittedly a very tedious process, considering that there are about
175 files. But if push comes to shove!

Or am I completely off ?
– shanko


(daz) #3

“Phil Tomson” wrote:

I’m trying to build my own statically linked ruby.exe using VC++. The
Makefile.sub builds a dynamically linked ruby.exe that depends on
msvcrt-ruby18.dll. I tried modifying the Makefile.sub to link to the
static library msvcrt-ruby18-static.lib, but I still end up with what
seems to be a dynamically linked ruby.exe (since it’s only 4608 bytes,
it has to be dynamically linked).

Does anyone know the recipe ?

Hi Phil,

Probably waay too late to be useful to _you, but miniruby.exe is
an example of what you’re looking for. It’s built along with
everything else by Makefile.sub.

daz