mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 23:06:59 +01:00
utils: Add pkg-config-for-target.
* guix/utils.scm (pkg-config-for-target): New procedure.
This commit is contained in:
parent
646233094e
commit
3d395e3d83
1 changed files with 6 additions and 0 deletions
|
@ -79,6 +79,7 @@ (define-module (guix utils)
|
|||
target-64bit?
|
||||
cc-for-target
|
||||
cxx-for-target
|
||||
pkg-config-for-target
|
||||
|
||||
version-compare
|
||||
version>?
|
||||
|
@ -548,6 +549,11 @@ (define* (cxx-for-target #:optional (target (%current-target-system)))
|
|||
(string-append target "-g++")
|
||||
"g++"))
|
||||
|
||||
(define* (pkg-config-for-target #:optional (target (%current-target-system)))
|
||||
(if target
|
||||
(string-append target "-pkg-config")
|
||||
"pkg-config"))
|
||||
|
||||
(define version-compare
|
||||
(let ((strverscmp
|
||||
(let ((sym (or (dynamic-func "strverscmp" (dynamic-link))
|
||||
|
|
Loading…
Reference in a new issue