summaryrefslogtreecommitdiff
path: root/profiles/features
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-23 00:11:31 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-23 00:11:31 +0100
commitbff543bb632933380da922cbfc07c67157d72d42 (patch)
treedf2e5eebc3dbd8e29153ab3a869b3be8d9be9f19 /profiles/features
parent491d0101c89d81dec507f28215b3cb094800d600 (diff)
gentoo auto-resync : 23:06:2024 - 00:11:30
Diffstat (limited to 'profiles/features')
-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"