gnu: Fix cross compilation issue with libgcrypt.
* gnu/packages/gnupg.scm (libgcrypt): Distinguish between the native and non-native libgpg-error input
This commit is contained in:
parent
a6abac9f2e
commit
e093274238
|
@ -71,17 +71,17 @@ Daemon and possibly more in the future.")
|
||||||
"0k2wi34qhp5hq71w1ab3kw1gfsx7xff79bvynqkxp35kls94826y"))))
|
"0k2wi34qhp5hq71w1ab3kw1gfsx7xff79bvynqkxp35kls94826y"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("libgpg-error" ,libgpg-error)))
|
`(("libgpg-error-host" ,libgpg-error)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
;; Needed here for the 'gpg-error' program.
|
;; Needed here for the 'gpg-error' program.
|
||||||
`(("libgpg-error" ,libgpg-error)))
|
`(("libgpg-error-native" ,libgpg-error)))
|
||||||
(arguments
|
(arguments
|
||||||
;; The '--with-gpg-error-prefix' argument is needed because otherwise
|
;; The '--with-gpg-error-prefix' argument is needed because otherwise
|
||||||
;; 'configure' uses 'gpg-error-config' to determine the '-L' flag, and
|
;; 'configure' uses 'gpg-error-config' to determine the '-L' flag, and
|
||||||
;; the 'gpg-error-config' it runs is the native one---i.e., the wrong one.
|
;; the 'gpg-error-config' it runs is the native one---i.e., the wrong one.
|
||||||
`(#:configure-flags
|
`(#:configure-flags
|
||||||
(list (string-append "--with-gpg-error-prefix="
|
(list (string-append "--with-gpg-error-prefix="
|
||||||
(assoc-ref %build-inputs "libgpg-error")))))
|
(assoc-ref %build-inputs "libgpg-error-host")))))
|
||||||
(outputs '("out" "debug"))
|
(outputs '("out" "debug"))
|
||||||
(home-page "http://gnupg.org/")
|
(home-page "http://gnupg.org/")
|
||||||
(synopsis "Cryptographic function library")
|
(synopsis "Cryptographic function library")
|
||||||
|
|
Loading…
Reference in New Issue