summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-08-17 17:54:48 +0000
committerMike Frysinger <vapier@gentoo.org>2011-08-17 17:54:48 +0000
commit6928a801e65985268f666b19d89d194cefa2d504 (patch)
treed9e14eb68b7a3df3cc49246938b3fb9a18449ebb /eclass
parentMarked stable on AMD64 based on arch testing by Agostino "ago" Sarubbo in sec... (diff)
downloadgentoo-2-6928a801e65985268f666b19d89d194cefa2d504.tar.gz
gentoo-2-6928a801e65985268f666b19d89d194cefa2d504.tar.bz2
gentoo-2-6928a801e65985268f666b19d89d194cefa2d504.zip
document what each LFS flag does exactly
Diffstat (limited to 'eclass')
-rw-r--r--eclass/flag-o-matic.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 2fec315b02a6..e119e1be2ed0 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.152 2011/07/12 04:08:52 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.153 2011/08/17 17:54:48 vapier Exp $
# @ECLASS: flag-o-matic.eclass
# @MAINTAINER:
@@ -131,6 +131,10 @@ filter-flags() {
# Remove flags that enable Large File Support.
filter-lfs-flags() {
[[ -n $@ ]] && die "filter-lfs-flags takes no arguments"
+ # http://www.gnu.org/s/libc/manual/html_node/Feature-Test-Macros.html
+ # _LARGEFILE_SOURCE: enable support for new LFS funcs (ftello/etc...)
+ # _LARGEFILE64_SOURCE: enable support for 64bit variants (off64_t/fseeko64/etc...)
+ # _FILE_OFFSET_BITS: default to 64bit variants (off_t is defined as off64_t)
filter-flags -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
}