PaulC wrote:

> This may not be the most efficient solution however I believe
> that the following should build a fully static ruby executable
> with all the the extension modules linked statically -
> 
> - Unpack xmlparse into the ext directory
> - touch xmlparse/MANIFEST (extml.rb checks for this)
> - If your expat libs/headers are not in a standard location edit
>   $CFLAGS/$LDFLAGS in xmlparse/extconf.rb
> - From the main ruby directory
>   ./configure --disable-shared --with-static-linked-ext ; make
> 
> There is probably an easier solution however this should work

This one worked partially. The run of configure with the described
parameters worked but it didn't include the modules in the binary.
Editing the Makefile and adding the parameter "-static" to the final
call of gcc however did it. The resulting binary is about 6 MB large
and about 3 MB after stripping. It includes everything from the Ruby
1.6.2 distribution and the xmlparser module.

Thanks for your help.

Best regards,
Florian.

-- 
Florian v. Walter (mailto:fwal / curry.de)
CURRY. SMILE @ WORK.
Curry Communication GmbH, Behringstrasse 28a, 22765 Hamburg
Tel.: +49.40.398344.00, Fax: +49.40.398344.09
-- Please do not send HTML or RTF emails and large attachments. --