Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

LARGE_FILE configuration (for small embedded linux) #1

Closed
fperrad opened this Issue · 3 comments

3 participants

@fperrad

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.

cross-link: https://bugs.uclibc.org/show_bug.cgi?id=2359

@hishamhm
Owner

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?

@Mikhael-Danilov

It would be very nice to have defines to undefine LARGE_FILE support form CFLAGS

@hishamhm
Owner

Merged patch by @Mikhael-Danilov to make this undefinable via CFLAGS!

@hishamhm hishamhm closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.