guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

10/11: gnu: cmake-bootstrap: Explicity declare the _FILE_OFFSET_BITS we


From: guix-commits
Subject: 10/11: gnu: cmake-bootstrap: Explicity declare the _FILE_OFFSET_BITS we want.
Date: Tue, 29 Sep 2020 09:32:20 -0400 (EDT)

dannym pushed a commit to branch wip-file-offset-bits-64
in repository guix.

commit 988b189c07db3accd05c1bc8180488c14d970c99
Author: Danny Milosavljevic <dannym@scratchpost.org>
AuthorDate: Tue Sep 29 15:17:07 2020 +0200

    gnu: cmake-bootstrap: Explicity declare the _FILE_OFFSET_BITS we want.
    
    * gnu/packages/cmake.scm 
(cmake-bootstrap)[arguments]<#:phases>[ensure-file-offset-bits-64]:
    Explicity declare the _FILE_OFFSET_BITS we want.
---
 gnu/packages/cmake.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index cf3bc40..03b1ce0 100644
--- a/gnu/packages/cmake.scm
+++ b/gnu/packages/cmake.scm
@@ -190,6 +190,13 @@
        #:phases
        (modify-phases %standard-phases
          ,@%common-build-phases
+         (add-before 'configure 'ensure-file-offset-bits-64
+           (lambda _
+             ;; See 
<https://gitlab.kitware.com/cmake/cmake/-/commit/627fb15eaac5bc02c9bddfb0be85d4b4f38d4a3a>
+             ;; for justification.
+             (setenv "CFLAGS" "-D_FILE_OFFSET_BITS=64")
+             (setenv "CXXFLAGS" "-D_FILE_OFFSET_BITS=64")
+             #t))
          (add-before 'configure 'set-paths
            (lambda _
              ;; Help cmake's bootstrap process to find system libraries



reply via email to

[Prev in Thread] Current Thread [Next in Thread]