[fpc-pascal] Static linking to C library on Linux

Ryan Joseph genericptr at gmail.com
Wed Nov 27 21:27:02 CET 2019



> On Nov 27, 2019, at 2:22 PM, Jonas Maebe <jonas at freepascal.org> wrote:
> 
> There is no tool that can show this, because a static library is just a
> collection of random object files. It does not contain any metadata
> about where these symbols are supposed to come from (and they could o,
> fact come from anywhere, be it individual object files, object files
> collected in another static library, or a dynamic library).

That's what I had originally thought. Can static libraries have dependancies on other static libraries? I noticed that when I linked a 12MB library my final binary was only 5MB so I presume there were duplicate symbols that were ignored.

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list