guix-commits
[Top][All Lists]
Advanced

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

03/06: gnu: libtasn1: Explicitly declare the _FILE_OFFSET_BITS we want.


From: guix-commits
Subject: 03/06: gnu: libtasn1: Explicitly declare the _FILE_OFFSET_BITS we want.
Date: Mon, 28 Sep 2020 19:38:45 -0400 (EDT)

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

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

    gnu: libtasn1: Explicitly declare the _FILE_OFFSET_BITS we want.
    
    * gnu/packages/tls.scm 
(libtasn1)[arguments]<#:phases>[ensure-file-offset-bits-64]:
    Explicity declare the _FILE_OFFSET_BITS we want.
---
 gnu/packages/tls.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index 510f057..d60eeea 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -86,7 +86,14 @@
         "179jskl7dmfp1rd2khkzmlibzgki4wi6hvmmwfv7q49r728b03qf"))))
     (build-system gnu-build-system)
     (arguments
-     `(#:configure-flags '("--disable-static")))
+     `(#:configure-flags '("--disable-static")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'ensure-file-offset-bits-64
+           ;; Note: lib/gl/sys/types.h has off_t, but only for Windows.
+           (lambda _
+             (setenv "CFLAGS" "-D_FILE_OFFSET_BITS=64")
+             #t)))))
     (native-inputs `(("perl" ,perl)))
     (home-page "https://www.gnu.org/software/libtasn1/";)
     (synopsis "ASN.1 library")



reply via email to

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