* [PATCH] arptables: build an libarptc.a archive
@ 2013-02-21 23:45 Jonh Wendell
2013-02-22 8:50 ` Jan Engelhardt
0 siblings, 1 reply; 3+ messages in thread
From: Jonh Wendell @ 2013-02-21 23:45 UTC (permalink / raw)
To: netfilter-devel; +Cc: Jonh Wendell
From: Jonh Wendell <jonh.wendell@oiwifi.com.br>
this allows programs to statically link against libarptc.
Signed-off-by: Jonh Wendell <jonh.wendell@oiwifi.com.br>
---
userspace/arptables/Makefile | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/userspace/arptables/Makefile b/userspace/arptables/Makefile
index 9a7bea4..38158d9 100644
--- a/userspace/arptables/Makefile
+++ b/userspace/arptables/Makefile
@@ -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)
--
1.8.1.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] arptables: build an libarptc.a archive
2013-02-21 23:45 [PATCH] arptables: build an libarptc.a archive Jonh Wendell
@ 2013-02-22 8:50 ` Jan Engelhardt
2013-02-24 10:09 ` Bart De Schuymer
0 siblings, 1 reply; 3+ messages in thread
From: Jan Engelhardt @ 2013-02-22 8:50 UTC (permalink / raw)
To: Jonh Wendell; +Cc: netfilter-devel, Jonh Wendell
On Friday 2013-02-22 00:45, Jonh Wendell wrote:
>From: Jonh Wendell <jonh.wendell@oiwifi.com.br>
>
>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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] arptables: build an libarptc.a archive
2013-02-22 8:50 ` Jan Engelhardt
@ 2013-02-24 10:09 ` Bart De Schuymer
0 siblings, 0 replies; 3+ messages in thread
From: Bart De Schuymer @ 2013-02-24 10:09 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: Jonh Wendell, netfilter-devel, Jonh Wendell
Op 22/02/2013 9:50, Jan Engelhardt schreef:
> On Friday 2013-02-22 00:45, Jonh Wendell wrote:
>
>> From: Jonh Wendell <jonh.wendell@oiwifi.com.br>
>>
>> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-02-24 10:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-21 23:45 [PATCH] arptables: build an libarptc.a archive Jonh Wendell
2013-02-22 8:50 ` Jan Engelhardt
2013-02-24 10:09 ` Bart De Schuymer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).