splitting the libs
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · John Lenton
I compiled netfilter 1.2.6a against uclibc, and I found that iptables, iptables-save and iptables-restore were all about the same size, and while ~300k for the three of them was more or less ok, 300k _each_ was out of the question. I looked a bit more and found I could split all the functionality into .so files, and have the same three binaries (plus these .sos) in the same size.
Is there any reason this later config isn't done by default? or at last enableable via the makefile?
The reason is that nobody implemented it yet and send a non-intrusive patch :)
So if you have done it, please contribute it!
Quoted 1 line
John Lenton ([email protected]) -- Random fortune:
Signature · 5 lines
Live long and prosper - Harald Welte / [email protected] http://www.gnumonks.org/ ============================================================================ GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M- V-- PS+ PE-- Y+ PGP++ t++ 5-- !X !R tv-- b+++ DI? !D G+ e* h+ r% y+(*)
Quoted 8 lines · Harald Welte
Quoted 7 lines · John Lenton
I compiled netfilter 1.2.6a against uclibc, and I found that iptables, iptables-save and iptables-restore were all about the same size, and while ~300k for the three of them was more or less ok, 300k _each_ was out of the question. I looked a bit more and found I could split all the functionality into .so files, and have the same three binaries (plus these .sos) in the same size.
Quoted 7 lines
Quoted 2 lines
Is there any reason this later config isn't done by default? or at last enableable via the makefile?
The reason is that nobody implemented it yet and send a non-intrusive patch :)
So if you have done it, please contribute it!
I did it by hand; fixing the Makefile cleanly would be more time than I currently have. Let me know if you won't be able to do it, so I'll add it to my TODO :)
btw, s/300k/50k/ (got my numbers wrong)
Anyhow, if it's any use, what I did was make as usual, and then
make libiptc/libip4tc.o
ld -s -O2 -shared -soname=libip4tc.so.1.2.7 libiptc/libip4tc.o \\
-o libip4tc.so.1.2.7
ld -s -O2 -shared -soname=libiptables.so.1.2.7 iptables.o \\
-o libiptables.so.1.2.7
for i in *.1.2.7; do ln -s $i ${i/1.2.7/}; done
for i in iptables-standalone iptables-save iptables-restore; do
cc -s -O2 -Wall -Wunused -I/usr/src/linux/include \\
-Iinclude/ -DIPTABLES_VERSION=\"1.2.7a\" \\
-DIPT_LIB_DIR=\"/usr/local/lib/iptables\" -rdynamic \\
-o ${i/-standalone/} $i.c -ldl -L. -liptables -lip4tc
donethen i copied libip* into /lib/.
As I say, please let me know if I should do this myself (about two months from now -- with luck) or if you will, or if it totally gross (and why :).
Signature · 3 lines
John Lenton ([email protected]) -- Random fortune: Cuanto más conozco a la gente más quiero a mi perro. -- Diógenes. (413-323 a.C.) Filósofo griego.