arptables: build an libarptc.a archive
PATCH 1/1 arptables: build an libarptc.a archive
From: Jonh Wendell <[email protected]>
this allows programs to statically link against libarptc.
--- userspace/arptables/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
userspace/arptables/Makefile +5 -2
@@ -19,7 +19,7 @@ endif include extensions/Makefile -all: arptables +all: arptables libarptc/libarptc.a arptables.o: arptables.c $(CC) $(CFLAGS) -c -o $@ $<
@@ -30,6 +30,9 @@ arptables-standalone.o: arptables-standalone.c libarptc/libarptc.o: libarptc/libarptc.c libarptc/libarptc_incl.c $(CC) $(CFLAGS) -c -o $@ $< +libarptc/libarptc.a: libarptc/libarptc.o + $(AR) rcs $@ $< + arptables: arptables-standalone.o arptables.o libarptc/libarptc.o $(EXT_OBJS) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
@@ -62,7 +65,7 @@ clean: rm -f arptables rm -f *.o *~ rm -f extensions/*.o extensions/*~ - rm -f libarptc/*.o libarptc/*~ + rm -f libarptc/*.o libarptc/*~ libarptc/*.a rm -f include/*~ include/libarptc/*~ DIR:=arptables-v$(ARPTABLES_VERSION)
Signature · 1 line
1.8.1.2
Quoted 3 lines · Jonh Wendell
From: Jonh Wendell <[email protected]>
this allows programs to statically link against libarptc.
A shared library, should anyone ever wish to develop against arptc (which I doubt), is much preferable.
Bart De Schuymer
AppliedOp 22/02/2013 9:50, Jan Engelhardt schreef:
Quoted 7 lines · Jonh Wendell
Quoted 4 lines
From: Jonh Wendell <[email protected]>
this allows programs to statically link against libarptc.
A shared library, should anyone ever wish to develop against arptc (which I doubt), is much preferable.
I've applied the patch. It's pretty common in embedded systems not to use shared libraries. If anyone wants a shared library, they'll have to provide a patch... Hopefully the new nftables or xtables2 will support arptables and provide for a better alternative :-)
cheers,
Bart