Prof. A Olowofoyeku (The African Chief) wrote:
And how can I force GPC to link only to static libraries?
-static
When building GPC, pass it in CFLAGS to make, when compiling programs with GPC, just give it on the command line.
Ok, thanks. Presumably, this means that the binaries will then become much bigger.
Sure.
Does this have any implications for execution speed
Depending on the processor, it will be a little faster (I heard some 3-5% on x86).
and /or RAM usage?
Bigger, of course (on the order of a few hundred KB). Of course, this might also slow down execuution a little because of more cache misses, but this shouldn't matter much.
In fact, I distribute all PENG binaries for Linux statically linked because of the issue you described, and I haven't had any problems with that.
Frank