RE: Reducing the size of libnetsnmp, libnetsnmphelpers etc lib files

"Srivastava, Namburi (IE10)" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <0BE793E111BFFF449DFB3207E2977BE020E883@IE10EV812.global.ds.honeywell.com>
When this option (modifying the CFLAGS & LFLAGS as mentioned below) is
combined with --disable-debugging option (used along with ./configure),
the size of the libraries further reduces

Libnetsnmpmibs.a	353 KB
Libnetsnmpagent.a	85 KB
Libnetsnmphelpers.a  83 KB
Libnetsnmp.a	476 KB

In case if the sub-agent code has any DEBUGMSGTL statements, those have
to be commented out.
Otherwise there will be a bunch of statements printed whenever the
subagent is run.

Sri.

-----Original Message-----
From: Srivastava, Namburi (IE10) 
Sent: Wednesday, January 17, 2007 6:00 PM
To: 'Dave Shield'
Cc: [email protected]
Subject: RE: Reducing the size of libnetsnmp, libnetsnmphelpers etc lib
files

I made these changes in the Makefiles

Remove the -g option from CFLAGS and (no debug information included)
Include -s --static for LDFLAGS

The size of the library files has drastically reduced.
Libnetsnmpmibs.a 533 KB
Libnetsnmpagent.a 113 KB
Libnetsnmphelpers.a 112 KB
Libnetsnmp.a 650 KB

This is with just the following option
./configure --with-perl-modules and then do the above mentioned changes
to the makefiles.

But the Sub-agent (fully functional) I built with these library files is
still of the same size as it used to be with earlier libraries.  

So still my problem is half solved... Not sure why

Regards,
Sri.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
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.