gnu: openssl: Explicitly declare the _FILE_OFFSET_BITS we want.

* gnu/packages/tls.scm (openssl)[arguments]<#:phases>[ensure-file-offset-bits-64]:
Explicity declare the _FILE_OFFSET_BITS we want.
This commit is contained in:
Danny Milosavljevic 2020-09-29 01:34:02 +02:00
parent c46ea41c01
commit 5b88689933
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -354,6 +354,11 @@ (define-public openssl
"linux-aarch64")))
#t)))
'())
(add-before 'configure '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))
(replace 'configure
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))