public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Sam James <sam@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: toolchain@gentoo.org, Sam James <sam@gentoo.org>
Subject: [gentoo-dev] [PATCH] flag-o-matic.eclass: add append-time64-flags
Date: Sun, 30 Oct 2022 15:48:21 +0000	[thread overview]
Message-ID: <20221030154821.1516844-1-sam@gentoo.org> (raw)

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



             reply	other threads:[~2022-10-30 15:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-30 15:48 Sam James [this message]
2022-10-31 10:37 ` [gentoo-dev] [PATCH] flag-o-matic.eclass: add append-time64-flags Mickaël Bucas
2022-11-09  6:25   ` Sam James
2022-11-14  4:37     ` [gentoo-dev] " Duncan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221030154821.1516844-1-sam@gentoo.org \
    --to=sam@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=toolchain@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox