help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linking only required objects


From: Bernhard Mogens Ege
Subject: Linking only required objects
Date: Mon, 22 May 2006 14:35:35 +0200
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050716)

I try to link only required objects into my executable but I dont know which objects are required so I add lots of -l<library> to my linker stage (using gnu ld). My program is linked and runs. Fine. But checking with ldd I see that it now depends on all these libraries, some of them I am sure are not required.

How do I find out which libraries are required and which are not required?

Using Linux...

Bernhard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]