Antwort: Re: Antwort: Re: [Nagios-users] Alternatives to NSCA?
Sascha.Runschke at gfkl.com
Sascha.Runschke at gfkl.com
Tue Dec 15 18:08:49 CET 2009
> It's your ld-fu that's weak. Basically, you can treat an ar-archive
> as an object file when liking them together. That way you can choose
> which libraries to link statically and which to link dynamically.
You are correct. I strengthend my ld-fu (or rather my collect2-fu)
and came up with:
/usr/libexec/gcc/i386-redhat-linux/4.1.2/collect2 --eh-frame-hdr -m
elf_i386 --hash-style=gnu -dynamic-linker /lib/ld-linux.so.2 -o send_nsca
send_nsca.o utils.o netutils.o -lnsl -lgcc /usr/lib/crt1.o /usr/lib/crti.o
/usr/lib/gcc/i386-redhat-linux/4.1.2/crtbegin.o -L/usr/lib
-L/usr/lib/gcc/i386-redhat-linux/4.1.2 --as-needed -lgcc_s --no-as-needed
-lc -lgcc --as-needed -lgcc_s --no-as-needed
/usr/lib/gcc/i386-redhat-linux/4.1.2/crtend.o /usr/lib/crtn.o
/usr/lib/libmcrypt.a
This gives me a dynamic linked send_nsca with static linked libmcrypt.
Sadly I didn't check the size of libmcrypt.a and the stripped send_nsca
is still 170kb - little bit too much for me.
Guess I have to keep looking for a solution...
Thanks for the hint anyway.
Regards
Sascha
GFKL Financial Services AG
Vorstand: Dr. Peter Jänsch (Vors.), Jürgen Baltes, Dr. Tom Haverkamp
Vorsitzender des Aufsichtsrats: Dr. Georg F. Thoma
Sitz: Limbecker Platz 1, 45127 Essen, Amtsgericht Essen, HRB 13522
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20091215/78279818/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list