On 26/04/2011 10:05, Robert Clipsham wrote:
On 26/04/2011 00:05, Nick Sabalausky wrote:
Thanks. How would I statically link against libc?
The way to do this with C is to pass -static to gcc, and I recall doing
something similar with dmd to get it working (maybe -L-static?) - I
don't have a linux machine near me to test with though, sorry.
Its not recommended you statically link to libc at any time except for
operating system applications. It may work, it may crash etc.
The way to do this is to link against the oldest libc you need to
support, thus making the binaries forward compatible.