tcpdump mailing list archives
Re: [PATCH][RFC] Allow linking from custom staticlib.a instead of list of object files
From: Guy Harris <guy () alum mit edu>
Date: Fri, 8 Jan 2010 16:22:32 -0800
On Jan 8, 2010, at 12:56 PM, Guy Harris wrote:
You might want to call it ARCHIVELIBS, by analogy to LIBS.
Another possibility, if the routines are in an installed library, would be to just add that library to LIBS. The shared libpcap will be linked with all the libraries in LIBS, so programs linked with the shared libpcap will pick up the shared versions of those libraries, and programs whose build procedures use the new-in-1.0.0 pcap-config script if it's available (top-of-tree tcpdump and Wireshark both do; I'll check whether Wireshark 1.2.x does, and, if not, look at backporting that) will, for a static build, link with the library if you pass --static to pcap-config. Note that top-of-tree libpcap, on Linux systems that have libnl, will use routines from it unless you explicitly use --without-libnl, so it already requires additional libraries on at least some platforms. - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- [PATCH][RFC] Allow linking from custom staticlib.a instead of list of object files Christian Bell (Jan 07)
- Re: [PATCH][RFC] Allow linking from custom staticlib.a instead of list of object files Guy Harris (Jan 08)
- Re: [PATCH][RFC] Allow linking from custom staticlib.a instead of list of object files Guy Harris (Jan 08)
- Re: [PATCH][RFC] Allow linking from custom staticlib.a instead of list of object files Christian Bell (Jan 11)
- wireshark question... Lidwa, Eric (GSFC-582.0)[SGT INC] (Jan 11)
- Re: [PATCH][RFC] Allow linking from custom staticlib.a instead of list of object files Guy Harris (Jan 08)
- Re: [PATCH][RFC] Allow linking from custom staticlib.a instead of list of object files Guy Harris (Jan 08)