mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 14:56:54 +01:00
gnu: libgit2: Allow cross-compilation.
With commit 8394619bac
, the label for
'pkg-config' when cross-compiling changed to "TRIPLET-pkg-config",
thereby breaking the 'assoc-ref' call. This commit fixes it by avoiding
referring to the label.
* gnu/packages/version-control.scm (libgit2)[arguments]: Adjust
"-DPKG_CONFIG_EXECUTABLE=" option.
This commit is contained in:
parent
a284e56de4
commit
8da6dfb0bb
1 changed files with 4 additions and 2 deletions
|
@ -811,8 +811,10 @@ (define-public libgit2
|
|||
,@(if (%current-target-system)
|
||||
`((string-append
|
||||
"-DPKG_CONFIG_EXECUTABLE="
|
||||
(assoc-ref %build-inputs "pkg-config")
|
||||
"/bin/" ,(%current-target-system) "-pkg-config"))
|
||||
(search-input-file
|
||||
%build-inputs
|
||||
(string-append "/bin/" ,(%current-target-system)
|
||||
"-pkg-config"))))
|
||||
'()))
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
|
|
Loading…
Reference in a new issue