Buildroot (http://buildroot.uclibc.org/) is a set of Makefiles and patches
that makes it easy to generate a complete embedded Linux system.
Buildroot could build a C library with or without LARGE_FILE support.
So, please define _FILE_OFFSET_BITS, _LARGEFILE64_SOURCE & _LARGE_FILES
in Makefile (or config) instead of in the plain C source src/lfs.c.
I would prefer to keep the lfs.c file building with the usual flags without requiring particular care in -D flags... (especially because I have no way to test it in several platforms here.) Would wrapping the defines with #ifndef tests suffice so you could override them with your own CFLAGS?
It would be very nice to have defines to undefine LARGE_FILE support form CFLAGS
Merged patch by @Mikhael-Danilov to make this undefinable via CFLAGS!