guix-commits
[Top][All Lists]
Advanced

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

05/06: gnu: libtool: Explicity declare the _FILE_OFFSET_BITS we want.


From: guix-commits
Subject: 05/06: gnu: libtool: Explicity declare the _FILE_OFFSET_BITS we want.
Date: Mon, 28 Sep 2020 19:38:46 -0400 (EDT)

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

commit 56a9e299c216eb68c949e0b406d17ddea176e073
Author: Danny Milosavljevic <dannym@scratchpost.org>
AuthorDate: Tue Sep 29 01:36:00 2020 +0200

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

diff --git a/gnu/packages/autotools.scm b/gnu/packages/autotools.scm
index 96f2925..febaabc 100644
--- a/gnu/packages/autotools.scm
+++ b/gnu/packages/autotools.scm
@@ -431,6 +431,16 @@ Makefile, simplifying the entire process for the 
developer.")
 
        #:phases
        (modify-phases %standard-phases
+         (add-before 'configure 'ensure-file-offset-bits-64
+           (lambda _
+             (setenv "CFLAGS" "-D_FILE_OFFSET_BITS=64")
+             (substitute* "libltdl/libltdl/lt__dirent.h"
+              (("#define LT__DIRENT_H 1") "#define LT__DIRENT_H 1
+#if !defined(_FILE_OFFSET_BITS) || _FILE_OFFSET_BITS != 64
+#error \"libltdl was compiled with _FILE_OFFSET_BITS == 64, so you have to be, 
too (since it exports readdir)\"
+#endif
+"))
+             #t))
          (add-before 'check 'pre-check
            (lambda* (#:key inputs native-inputs #:allow-other-keys)
              ;; Run the test suite in parallel, if possible.



reply via email to

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