mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: flashrom: Support libusb versions >1.0.21.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Override CFLAGS in #:make-flags.
This commit is contained in:
parent
883fa31088
commit
326654e42b
1 changed files with 8 additions and 3 deletions
|
@ -48,6 +48,7 @@
|
||||||
(define-public flashrom
|
(define-public flashrom
|
||||||
(package
|
(package
|
||||||
(name "flashrom")
|
(name "flashrom")
|
||||||
|
;; XXX: The CFLAGS=... line below can probably be removed when updating.
|
||||||
(version "1.0")
|
(version "1.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -64,7 +65,11 @@
|
||||||
("libftdi" ,libftdi)))
|
("libftdi" ,libftdi)))
|
||||||
(native-inputs `(("pkg-config" ,pkg-config)))
|
(native-inputs `(("pkg-config" ,pkg-config)))
|
||||||
(arguments
|
(arguments
|
||||||
'(#:make-flags (list "CC=gcc"
|
'(#:make-flags
|
||||||
|
(list "CC=gcc"
|
||||||
|
;; The default includes ‘-Wall -Werror’, causing the build to fail
|
||||||
|
;; with deprecation warnings against libusb versions >= 1.0.22.
|
||||||
|
"CFLAGS=-Os -Wshadow"
|
||||||
(string-append "PREFIX=" %output)
|
(string-append "PREFIX=" %output)
|
||||||
"CONFIG_ENABLE_LIBUSB0_PROGRAMMERS=no")
|
"CONFIG_ENABLE_LIBUSB0_PROGRAMMERS=no")
|
||||||
#:tests? #f ; no 'check' target
|
#:tests? #f ; no 'check' target
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue