~ruther/guix-local

479a0dd5798ad24b5387483ac4882ec5caf9d618 — Zheng Junjie 1 year, 5 months ago ff6ae00
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
1 files changed, 3 insertions(+), 1 deletions(-)

M gnu/packages/flex.scm
M gnu/packages/flex.scm => gnu/packages/flex.scm +3 -1
@@ 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")))