gnu: gnome-js-common: Fix build on some architectures.
* gnu/packages/gnome.scm (gnome-js-common)[arguemnts]: When building for aarch64-linux or riscv64-linux replace the config.guess and config.sub files. [native-inputs]: When building for aarch64-linux or riscv64-linux add config. Change-Id: Ia27b0fec7d0b50e9e4ab7ea7329d390ddc482795
This commit is contained in:
parent
c6d99eb371
commit
38733b5039
1 changed files with 19 additions and 3 deletions
|
@ -459,10 +459,26 @@ and other formats.")
|
||||||
(build-system glib-or-gtk-build-system)
|
(build-system glib-or-gtk-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags
|
`(#:configure-flags
|
||||||
(list
|
(list "--disable-static")
|
||||||
"--disable-static")))
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
,@(if (or (target-riscv64?)
|
||||||
|
(target-aarch64?))
|
||||||
|
`((add-after 'unpack 'update-config-scripts
|
||||||
|
(lambda* (#:key native-inputs inputs #:allow-other-keys)
|
||||||
|
(for-each (lambda (file)
|
||||||
|
(install-file
|
||||||
|
(search-input-file
|
||||||
|
(or native-inputs inputs)
|
||||||
|
(string-append "/bin/" file)) "."))
|
||||||
|
'("config.guess" "config.sub")))))
|
||||||
|
'()))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("gettext" ,gettext-minimal)
|
`(,@(if (or (target-riscv64?)
|
||||||
|
(target-aarch64?))
|
||||||
|
`(("config" ,config))
|
||||||
|
`())
|
||||||
|
("gettext" ,gettext-minimal)
|
||||||
("intltool" ,intltool)
|
("intltool" ,intltool)
|
||||||
("pkg-config" ,pkg-config)))
|
("pkg-config" ,pkg-config)))
|
||||||
(synopsis "Common JS Modules")
|
(synopsis "Common JS Modules")
|
||||||
|
|
Reference in a new issue