summary refs log tree commit diff
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2020-09-28 09:28:16 +0200
committerDanny Milosavljevic <dannym@scratchpost.org>2020-09-28 11:47:39 +0200
commitdbbe31ee4eef670aa052edda6f4b4730aacbc3aa (patch)
treec8b12b79d19a7e579cc08b50f7b97c70e42dbebc
parent024bd3e37ee51f48d590c3ddd7bfacf04385295e (diff)
downloadguix-dbbe31ee4eef670aa052edda6f4b4730aacbc3aa.tar.gz
gnu: libidn2: Explicitly declare the _FILE_OFFSET_BITS we want.
* gnu/packages/libidn.scm (libidn2)[arguments]<#:phases>[ensure-file-offset-bits-64]:
Explicity declare the _FILE_OFFSET_BITS we want.
-rw-r--r--gnu/packages/libidn.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/packages/libidn.scm b/gnu/packages/libidn.scm
index b46cdfc0a5..20361817d8 100644
--- a/gnu/packages/libidn.scm
+++ b/gnu/packages/libidn.scm
@@ -74,7 +74,13 @@ Java libraries.")
      `(("libunistring" ,libunistring)))
     (build-system gnu-build-system)
     (arguments
-     `(#:configure-flags '("--disable-static")))
+     `(#:configure-flags '("--disable-static")
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'configure 'ensure-file-offset-bits-64
+           (lambda _
+             (setenv "CFLAGS" "-D_FILE_OFFSET_BITS=64")
+             #t)))))
     (synopsis "Internationalized domain name library for IDNA2008")
     (description "Libidn2 is an internationalized domain library implementing
 the IDNA2008 specifications.   Libidn2 is believed to be a complete IDNA2008