public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH] flag-o-matic.eclass: add append-time64-flags
@ 2022-10-30 15:48 Sam James
  2022-10-31 10:37 ` Mickaël Bucas
  0 siblings, 1 reply; 4+ messages in thread
From: Sam James @ 2022-10-30 15:48 UTC (permalink / raw
  To: gentoo-dev; +Cc: toolchain, Sam James

Signed-off-by: Sam James <sam@gentoo.org>
---
 eclass/flag-o-matic.eclass | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 365741a6dddf..d9149ebee4a5 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -301,6 +301,19 @@ append-lfs-flags() {
 	append-cppflags -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
 }
 
+# @FUNCTION: append-time64-flags
+# @DESCRIPTION:
+# Add flags that enable 64-bit time_t. Implies Large File Support
+# (calls append-lfs-flags) automatically.
+append-time64-flags() {
+        [[ $# -ne 0 ]] && die "append-lfs-flags takes no arguments"
+
+	# time64 needs LFS
+	append-lfs-flags
+
+	append-cppflags -D_TIME_BITS=64
+}
+
 # @FUNCTION: append-ldflags
 # @USAGE: <flags>
 # @DESCRIPTION:
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-11-14  4:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-30 15:48 [gentoo-dev] [PATCH] flag-o-matic.eclass: add append-time64-flags Sam James
2022-10-31 10:37 ` Mickaël Bucas
2022-11-09  6:25   ` Sam James
2022-11-14  4:37     ` [gentoo-dev] " Duncan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox