gnu: libfido2: Fix cross-compilation.

* gnu/packages/security-token.scm (libfido2)[arguments]: Set the
PKG_CONFIG_EXECUTABLE variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Sébastien Lerique 2022-03-27 22:00:04 +09:00 committed by Efraim Flashner
parent 89f3275ff5
commit fc94e93c4b
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -38,6 +38,7 @@ (define-module (gnu packages security-token)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix gexp)
#:use-module (guix utils)
#:use-module (guix git-download)
#:use-module (guix build-system cargo)
#:use-module (guix build-system cmake)
@ -906,7 +907,13 @@ (define-public libfido2
(inputs (list eudev libcbor openssl zlib))
(build-system cmake-build-system)
(arguments
'(#:phases
`(#:configure-flags
(list (string-append
"-DPKG_CONFIG_EXECUTABLE="
(search-input-file %build-inputs
(string-append
"/bin/" ,(pkg-config-for-target)))))
#:phases
(modify-phases %standard-phases
;; regress tests enabled only for debug builds
(delete 'check))))