]> Savannah Git Hosting - gnulib.git/commitdiff
year2038: Fix recommendation regarding -m64 flag.
authorBruno Haible <bruno@clisp.org>
Sat, 7 Aug 2021 14:03:22 +0000 (16:03 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 7 Aug 2021 14:03:22 +0000 (16:03 +0200)
* m4/year2038.m4 (gl_YEAR2038_BODY): Recommend to put option --m64 in
CC, not in CPPFLAGS and LDFLAGS.

ChangeLog
m4/year2038.m4

index 688d96b6d1afdd44a8b1460d1e6eb50710ebd87d..f7a59b4941b46015f415b6b277ae39ba60c4e60f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-08-07  Bruno Haible  <bruno@clisp.org>
+
+       year2038: Fix recommendation regarding -m64 flag.
+       * m4/year2038.m4 (gl_YEAR2038_BODY): Recommend to put option --m64 in
+       CC, not in CPPFLAGS and LDFLAGS.
+
 2021-08-07  Bruno Haible  <bruno@clisp.org>
 
        quotearg: Tweak last commit.
index f53b03f94f4edc131b75af4c4e2e33339cc9dd1d..da0f8d7303073d843ac0899c71253299c0287b35 100644 (file)
@@ -1,4 +1,4 @@
-# year2038.m4 serial 6
+# year2038.m4 serial 7
 dnl Copyright (C) 2017-2021 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -100,7 +100,7 @@ AC_DEFUN([gl_YEAR2038_BODY],
                 AC_MSG_FAILURE(
                   [The 'time_t' type stops working after January 2038,
                    and your system appears to support a wider 'time_t'.
-                   Try configuring with 'CPPFLAGS="-m64" LDFLAGS="-m64"'.
+                   Try configuring with 'CC="${CC} -m64"'.
                    To build with a 32-bit time_t anyway (not recommended),
                    configure with '--disable-year2038'.]);;
             esac
@@ -111,7 +111,7 @@ AC_DEFUN([gl_YEAR2038_BODY],
            [The 'time_t' type stops working after January 2038,
             and this package needs a wider 'time_t' type
             if there is any way to access timestamps after that.
-            Configure with 'CPPFLAGS="-m64" LDFLAGS="-m64"' perhaps?])
+            Configure with 'CC="${CC} -m64"' perhaps?])
          gl_warned_about_y2038=yes
        fi
       ])