I worked with 1.42.6. Download it and extract.
wget http://kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v1.42.6/e2fsprogs-1.42.6.tar.bz2 tar -jxvvf e2fsprogs-1.42.6.tar.bz2 cd e2fsprogs-1.42.6 mkdir ~/e2progs ./configure --prefix=/home/droidzone/e2progs --host=arm-linux-gnueabihf kate Makefile
Add -static to CFLAGS.
The final CFLAGS look like this:
CFLAGS = -g -O2 -static
make and install:
make make install
The final binaries are put in ~/e2progs/sbin/
The final file is said to be dynamically linked, but I doubt if that’s actually true, since under lib, there’s only one file: e2initrd_helper
file ~/e2progs/sbin/e2fsck /home/droidzone/e2progs/sbin/e2fsck: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.31, not stripped
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.