Re: [tcpdump-workers] [PATCH][RFC] Allow linking from custom staticlib.a instead of list of object files

2010-01-11 Thread Christian Bell
On Jan 8, 2010, at 7:22 PM, Guy Harris wrote: 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

Re: [tcpdump-workers] [PATCH][RFC] Allow linking from custom staticlib.a instead of list of object files

2010-01-08 Thread Guy Harris
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 program

Re: [tcpdump-workers] [PATCH][RFC] Allow linking from custom staticlib.a instead of list of object files

2010-01-08 Thread Guy Harris
On Jan 7, 2010, at 12:22 PM, Christian Bell wrote: > libpcap.a: $(OBJ) > @rm -f $@ > - ar rc $@ $(OBJ) $(ADDLARCHIVEOBJS) > + if test -n "$(ADDLARCHIVES)"; then \ > + EXTRA_OBJS=`ar t $(ADDLARCHIVES) | tr '\n' ' '`; \ > + ar x $(ADDLARCHIVES); \ > + fi; \ > +

[tcpdump-workers] [PATCH][RFC] Allow linking from custom staticlib.a instead of list of object files

2010-01-07 Thread Christian Bell
From: Christian Bell This patch allows libpcap.a and libpcap.so to include object files from a static library archive instead of just a list of .o files. I'm only including the Makefile.in part because I just want feedback on whether this would be acceptable practice. I'm preparing a larger sub