mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-20 16:15:54 +02: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:
@@ -811,8 +811,10 @@ to GitHub contributions calendar.")
|
||||
,@(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
|
||||
|
||||
Reference in New Issue
Block a user