summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-12-18 13:24:11 -0500
committerMike Gilbert <floppym@gentoo.org>2021-12-18 16:53:56 -0500
commit76a84c525c56fb6ed3fe108d8105f617771bd88f (patch)
tree798b345b77b41b19efc90369416067722d6deb3b /eclass/flag-o-matic.eclass
parentsys-libs/glibc: Filter LFS and TIME64 defines (diff)
downloadgentoo-76a84c525c56fb6ed3fe108d8105f617771bd88f.tar.gz
gentoo-76a84c525c56fb6ed3fe108d8105f617771bd88f.tar.bz2
gentoo-76a84c525c56fb6ed3fe108d8105f617771bd88f.zip
flag-o-matic.eclass: filter-lfs-flags: remove -D_TIME_BITS=64
glibc only allows _TIME_BITS=64 when _FILE_OFFSET_BITS=64. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index d262a60b6bb2..32119cb9a526 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -193,7 +193,8 @@ filter-lfs-flags() {
# _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
+ # _TIME_BITS: default to 64bit time_t (requires _FILE_OFFSET_BITS=64)
+ filter-flags -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_TIME_BITS=64
}
# @FUNCTION: filter-ldflags