summaryrefslogtreecommitdiff
path: root/profiles/features/time64/make.defaults
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/features/time64/make.defaults')
-rw-r--r--profiles/features/time64/make.defaults12
1 files changed, 12 insertions, 0 deletions
diff --git a/profiles/features/time64/make.defaults b/profiles/features/time64/make.defaults
index 993dd21b6104..0edc40fa682e 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} -Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=return-type -Werror=int-conversion"
+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"