Hi all,
I successfully compiled knockd 0.7 source (http://www.zeroflux.org/projects/knock) with Attitude Adjustment toolchain. This included compilation of libpcap and knockd itself.
To compile I leveraged the original configure/make scripts in the tarball (ie. ./configure -host=mipsel-openwrt-linux-uclibc --build=i686-pc-linux-gnu).
output binary works, but it's definitely oversized. using stripping, I cant make it smaller than 280kB. Original knockd package (version 0.5) available on openwrt repository is way smaller, around 30kB. And if I compile the same source for x86, it's around 30kB as well.
Now the question is: what am I missing to reduce binary size in case of crosscompiling version 0.7? I tried to play with -O options in makefile, but still can't go lower than 280kB. I'm no compilation/x-compilation expert, is there anything I should optimize on libpcap as well? any other hints?
thanks