wpa_supplicant may be one of the offenders here.Iguleder wrote:I just built the entire DSLR from scratch with GCC 4.8.x, while the compiler is replaced with a wrapper:I found out that several packages do not respect CFLAGS or add -O2 thanks to auto* crap. I was able to shave a few KB here and there.Code: Select all
#!/bin/sh case "$@" in *-O[0-9]*) echo "`pwd` $@" >> /tmp/args.txt ;; esac exec /usr/bin/cc "$@"
Speaking of which, what version do you use? 1.0 weighs a little shy of 800k here; 2.0-2.2 run 1.4 megs (CFLAGS=-Os -fomit-frame-pointer), and I got 2.2 down to 1.15 megs with the config in the tarball I attached previously (docs/configs from building bareroot).
But you may prefer using "openssl" (libressl for you).
With the gc-sections options, lok shrinks a bit.
Also: try sstrip from github.com/BR903/ELFkickers (subdirectory sstrip). I can usually knock about 1k off beyond what strip can do. But don't expect sstrip'd dynamic libs to be usable for linking or nm.