[Ur] [PATCH] Static link to libmhash when -static parameter given
Karn Kallio
tierpluspluslists at gmail.com
Mon Nov 15 19:55:18 EST 2010
The Ur/Web compiler links to the libmhash dynamic library independent of the
-static parameter being given to the compiler, which links only the liburweb
statically.
This patch makes the Ur/Web compiler also link libmhash statically with the -
static flag. The motivation is to have -static produce programs which can run
on machines without a special Ur/Web installation ( considering libmhash as
part of a Ur/Web installation because it is not likely to be found on many
machines ).
The goal is to use -static to produce executables which can be placed on
shared hosting Linux servers with Apache CGI via FTP ... "bringing Ur to the
world"
The patch adds a configure flag --with-mhash-dir to let the Ur/Web compiler
know how to find libmhash.a in order to pass it along to gcc.
I do not know if this patch will interact badly with the FFI mechanism of
Ur/Web.
Note: after applying the patch I did $autoreconf -i to update the autotools
build system.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: static-mhash.patch
Type: text/x-patch
Size: 3629 bytes
Desc: not available
URL: <http://www.impredicative.com/pipermail/ur/attachments/20101115/6462ff8f/attachment.bin>
More information about the Ur
mailing list