commit: 3d102949a3e4802dd8ab610a92f31b13c9747f9d Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> AuthorDate: Sat Jun 22 11:46:27 2024 +0000 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> CommitDate: Sat Jun 22 11:53:24 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d102949
profiles: fill in content of time64 feature Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> profiles/features/time64/make.defaults | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/profiles/features/time64/make.defaults b/profiles/features/time64/make.defaults index 993dd21b6104..165370eeba24 100644 --- a/profiles/features/time64/make.defaults +++ b/profiles/features/time64/make.defaults @@ -1,3 +1,15 @@ # Copyright 2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Many profiles and stages override CFLAGS etc, and need then to eat their +# own dogfood. For those who don't... +__COMMON_FLAGS_TIME64="-D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64" + +CFLAGS="${CFLAGS} ${__COMMON_FLAGS_TIME64}" +CXXFLAGS="${CXXFLAGS} ${__COMMON_FLAGS_TIME64}" +FCFLAGS="${FCFLAGS} ${__COMMON_FLAGS_TIME64}" +FFLAGS="${FFLAGS} ${__COMMON_FLAGS_TIME64}" + +# We need to switch this explicitly on since it's explicitly disabled +# in profiles otherwise. +enable_year2038="yes"