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:
Tobias Geerinckx-Rice 2018-03-25 17:31:22 +02:00
parent 883fa31088
commit 326654e42b
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -48,6 +48,7 @@ (define-module (gnu packages flashing-tools)
(define-public flashrom
(package
(name "flashrom")
;; XXX: The CFLAGS=... line below can probably be removed when updating.
(version "1.0")
(source (origin
(method url-fetch)
@ -64,9 +65,13 @@ (define-public flashrom
("libftdi" ,libftdi)))
(native-inputs `(("pkg-config" ,pkg-config)))
(arguments
'(#:make-flags (list "CC=gcc"
(string-append "PREFIX=" %output)
"CONFIG_ENABLE_LIBUSB0_PROGRAMMERS=no")
'(#: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)
"CONFIG_ENABLE_LIBUSB0_PROGRAMMERS=no")
#:tests? #f ; no 'check' target
#:phases
(modify-phases %standard-phases