[LIP] Restricting LD to strictly required symbols only

Shridhar Daithankar <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
Hi,

I am porting an application to linux and has landed into a rather unique 
situation.

The product builds around 60+ shared libraries and 12 programs. I am done with 
creating libraries.

Problem is when I start linking the first program the dependency hits where it 
should not(ideally)

GNU ld asks for libB following the dependency chain like, program->libA->libB. 
Trouble is I know that program does not use libB at all but some functions in 
libA do depend upon it. 

The chain is getting rather long and I am really short of listing all 60+ 
libraries on ld commandline.

Can't I make ld bit smart here?

Any help is greatly appreciated.

Regards,
 Shridhar


-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.