[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/06: gnu: libltdl: Explicity declare the _FILE_OFFSET_BITS we want.
From: |
guix-commits |
Subject: |
06/06: gnu: libltdl: 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 358970fed6cf6ec3bb475e7385db269754095051
Author: Danny Milosavljevic <dannym@scratchpost.org>
AuthorDate: Tue Sep 29 01:37:14 2020 +0200
gnu: libltdl: Explicity declare the _FILE_OFFSET_BITS we want.
* gnu/packages/autotools.scm
(libltdl)[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 febaabc..38840e9 100644
--- a/gnu/packages/autotools.scm
+++ b/gnu/packages/autotools.scm
@@ -487,6 +487,16 @@ complexity of working with shared libraries across
platforms.")
(arguments
'(#:configure-flags '("--enable-ltdl-install") ;really install it
#:phases (modify-phases %standard-phases
+ (add-after 'unpack '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 'configure 'change-directory
(lambda _ (chdir "libltdl") #t)))))
- branch wip-file-offset-bits-64 updated (024bd3e -> 358970f), guix-commits, 2020/09/28
- 02/06: gnu: fontconfig: Explicitly declare the _FILE_OFFSET_BITS we want., guix-commits, 2020/09/28
- 03/06: gnu: libtasn1: Explicitly declare the _FILE_OFFSET_BITS we want., guix-commits, 2020/09/28
- 04/06: gnu: openssl: Explicitly declare the _FILE_OFFSET_BITS we want., guix-commits, 2020/09/28
- 01/06: gnu: libidn2: Explicitly declare the _FILE_OFFSET_BITS we want., guix-commits, 2020/09/28
- 05/06: gnu: libtool: Explicity declare the _FILE_OFFSET_BITS we want., guix-commits, 2020/09/28
- 06/06: gnu: libltdl: Explicity declare the _FILE_OFFSET_BITS we want.,
guix-commits <=