gnu: flex: Use -Wno-error= for cross-build.

* gnu/packages/flex.scm (flex)[arguments]: Insert "error=" in #:configure-flags.

Change-Id: If564a1fd50ae754ad499b7985e2166c352e32e1a
This commit is contained in:
Janneke Nieuwenhuizen 2024-12-12 14:25:11 +01:00
parent fb9f0abe0a
commit 1b57237c51
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -58,8 +58,10 @@ (define-public flex
(arguments
(if (or (target-hurd64?) (%current-target-system))
(list #:configure-flags
#~'(#$(string-append "CFLAGS=-Wno-int-conversion"
" -Wno-implicit-function-declaration")))
#~'(#$(string-append
"CFLAGS=-g -O2"
" -Wno-error=implicit-function-declaration"
" -Wno-error=int-conversion")))
'()))
;; m4 is not present in PATH when cross-building
(native-inputs