blob: 0edc40fa682e97afaa518afdbfd5ce15cb3f899c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"
|