[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] gnu: gnupg: Fix cross-compile issues.
From: |
John Darrington |
Subject: |
[PATCH] gnu: gnupg: Fix cross-compile issues. |
Date: |
Sun, 15 Dec 2013 09:39:05 +0100 |
From: John Darrington <address@hidden>
* gnu/packages/gnupg.scm (libgpg-error): Add gcc as a native input,
and set the CC_FOR_BUILD variable.
* gnu/packages/gnupg.scm (libgcrypt): Add libgpg-error as a native input and
set the --with-gpg-error-prefix configure option.
* gnu/packages/gnupg.scm (libksba): Add libgpg-error as a native input and
set the --with-gpg-error-prefix configure option.
---
gnu/packages/gnupg.scm | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index e888109..d83df50 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -44,6 +44,10 @@
(base32
"0pz58vr12qihq2f0bypjxsb6cf6ajq5258fmfm8s6lvwm3b9xz6a"))))
(build-system gnu-build-system)
+ (arguments
+ `(,@(if (%current-target-system)
+ '(#:configure-flags '("CC_FOR_BUILD=gcc"))
+ '())))
(home-page "http://gnupg.org")
(synopsis
"Libgpg-error, a small library that defines common error values for all
GnuPG components")
@@ -68,6 +72,12 @@ Daemon and possibly more in the future.")
(build-system gnu-build-system)
(propagated-inputs
`(("libgpg-error" ,libgpg-error)))
+ (native-inputs
+ `(("libgpg-error" ,libgpg-error)))
+ (arguments
+ `(#:configure-flags
+ (list (string-append "--with-gpg-error-prefix="
+ (assoc-ref %build-inputs "libgpg-error")))))
(home-page "http://gnupg.org/")
(synopsis "Cryptographic function library")
(description
@@ -118,6 +128,14 @@ provided.")
(build-system gnu-build-system)
(propagated-inputs
`(("libgpg-error" ,libgpg-error)))
+ (native-inputs
+ `(("libgpg-error" ,libgpg-error)))
+ (arguments
+ `(#:configure-flags (list
+ ,@(if (%current-target-system)
+ '("CC_FOR_BUILD=gcc")'())
+ (string-append "--with-gpg-error-prefix="
+ (assoc-ref %build-inputs "libgpg-error")))))
(home-page "http://www.gnupg.org")
(synopsis
"Libksba is a CMS and X.509 access library under development")
--
1.7.10.4
[PATCH 4/5] gnu: openssl: Fixed cross-compile issues., John Darrington, 2013/12/14
[PATCH 3/5] gnu: tzdata: Added "source" as input., John Darrington, 2013/12/14