Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LARGE_FILE configuration (for small embedded linux) #1

Closed
fperrad opened this issue Aug 11, 2010 · 3 comments
Closed

LARGE_FILE configuration (for small embedded linux) #1

fperrad opened this issue Aug 11, 2010 · 3 comments

Comments

@fperrad
Copy link

fperrad commented Aug 11, 2010

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
Copy link
Member

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
Copy link
Contributor

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

@hishamhm
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants