andreas pushed a commit to branch core-packages-team
in repository guix.

commit 1a5ce01f1c840147c3296469c9ebd07aa3b91475
Author: Zheng Junjie <z572@z572.online>
AuthorDate: Wed Feb 12 22:51:15 2025 +0800

    gnu: flex: Fix cross-compiling.
    
    * gnu/packages/flex.scm (flex)[arguments]<#:configure-flags>: When
    cross-compiling, add ac_cv_func_malloc_0_nonnull=yes and
    ac_cv_func_realloc_0_nonnull=yes.
    
    Change-Id: I89718a19e2b3c5a5f5732049f3b0bcd7621e9f1b
---
 gnu/packages/flex.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/flex.scm b/gnu/packages/flex.scm
index 665b678d02..bc4498b633 100644
--- a/gnu/packages/flex.scm
+++ b/gnu/packages/flex.scm
@@ -58,7 +58,9 @@
     (arguments
      (if (or (target-hurd64?) (%current-target-system))
          (list #:configure-flags
-               #~'(#$(string-append
+               #~'("ac_cv_func_malloc_0_nonnull=yes"
+                   "ac_cv_func_realloc_0_nonnull=yes"
+                   #$(string-append
                       "CFLAGS=-g -O2"
                       " -Wno-error=implicit-function-declaration"
                       " -Wno-error=int-conversion")))

Reply via email to