mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gnu: libxml2: Fixed cross-compilation.
* gnu/packages/xml.scm (libxml2): assign "cross-libc" to the variable glibc. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
c94d01bab2
commit
5839958a8f
1 changed files with 7 additions and 3 deletions
|
@ -75,12 +75,16 @@ (define-public libxml2
|
|||
'install
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
|
||||
(let ((install (assoc-ref %standard-phases 'install))
|
||||
(glibc (assoc-ref inputs "libc"))
|
||||
(glibc (assoc-ref inputs ,(if (%current-target-system)
|
||||
"cross-libc" "libc")))
|
||||
(out (assoc-ref outputs "out")))
|
||||
(apply install args)
|
||||
(chdir "python")
|
||||
(substitute* "setup.py" (("/opt/include") (string-append glibc "/include")))
|
||||
(system* "python" "setup.py" "install" (string-append "--prefix=" out))))
|
||||
(substitute* "setup.py"
|
||||
(("/opt/include")
|
||||
(string-append glibc "/include")))
|
||||
(system* "python" "setup.py" "install"
|
||||
(string-append "--prefix=" out))))
|
||||
%standard-phases)))
|
||||
(description
|
||||
"Libxml2 is the XML C parser and toolkit developed for the Gnome project
|
||||
|
|
Loading…
Reference in a new issue