mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
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.
This commit is contained in:
parent
56a9e299c2
commit
358970fed6
1 changed files with 10 additions and 0 deletions
|
@ -487,6 +487,16 @@ (define-public libltdl
|
|||
(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)))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue