Joel Reymont wrote: > > How would I go about producing a statically-linked binary from gforth, > image files and shared libraries?
For a statically linked binary of the gforth engine, build with the -static flag for Gforth in the right place (either ./configure CC="gcc -static" or maybe make XLDFLAGS=-static If you want a single file that, upon execution, invokes a Gforth application on a system that does not have Gforth installed earlier, that's not easily possible (there is no particular support in Gforth for that). However, most systems have typical package formats that allow packaging several files into a single file, distributing that file, and installing it on the target machine. E.g. Gforth is distributed in that way for a number of platforms. Maybe that's an option for you. > This is to produce iPhone apps, for example. It seems unlikely to me that static linking is a good idea on the iPhone. - anton --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
