D CGI test: linux.so.2: bad ELF interpreter: No such file or directory
Spacen Jasset
spacenjasset at yahoo.co.uk
Tue Apr 26 12:37:08 PDT 2011
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.
More information about the Digitalmars-d-learn
mailing list