gnu: pzstd: Cross compile.
* gnu/packages/compression.scm (pzstd)[arguments]: use cc-for-target, cxx-for-target in make-flags. [native-inputs]: Only use googletest when compiling natively. [inputs]: Add googletest when cross compiling.master
parent
9f58c83c3a
commit
455daf46ad
|
@ -1461,8 +1461,14 @@ speed.")
|
||||||
(version (package-version zstd))
|
(version (package-version zstd))
|
||||||
(source (package-source zstd))
|
(source (package-source zstd))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
|
(inputs
|
||||||
|
`(,@(if (%current-target-system)
|
||||||
|
`(("googletest" ,googletest))
|
||||||
|
'())))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("googletest" ,googletest)))
|
`(,@(if (%current-system)
|
||||||
|
`(("googletest" ,googletest))
|
||||||
|
'())))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
@ -1480,7 +1486,8 @@ speed.")
|
||||||
(install-file "README.md" doc)
|
(install-file "README.md" doc)
|
||||||
#t))))
|
#t))))
|
||||||
#:make-flags
|
#:make-flags
|
||||||
(list "CC=gcc"
|
(list (string-append "CC=" ,(cc-for-target))
|
||||||
|
(string-append "CXX=" ,(cxx-for-target))
|
||||||
(string-append "PREFIX=" (assoc-ref %outputs "out")))))
|
(string-append "PREFIX=" (assoc-ref %outputs "out")))))
|
||||||
(home-page (package-home-page zstd))
|
(home-page (package-home-page zstd))
|
||||||
(synopsis "Threaded implementation of the Zstandard compression algorithm")
|
(synopsis "Threaded implementation of the Zstandard compression algorithm")
|
||||||
|
|
Reference in New Issue