gnu: tcl: Fix cross-compilation.
* gnu/packages/tcl.scm (tcl)[arguments]: Add configure flags to fix cross-compilation.
This commit is contained in:
parent
57ec9861f4
commit
2ce30a37ad
1 changed files with 11 additions and 4 deletions
|
@ -53,7 +53,7 @@
|
||||||
"0kjzj7mkzfnb7ksxanbibibfpciyvsh5ffdlhs0bmfc75kgd435d"))))
|
"0kjzj7mkzfnb7ksxanbibibfpciyvsh5ffdlhs0bmfc75kgd435d"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases (modify-phases %standard-phases
|
`(#:phases (modify-phases %standard-phases
|
||||||
(add-before 'configure 'pre-configure
|
(add-before 'configure 'pre-configure
|
||||||
(lambda _ (chdir "unix") #t))
|
(lambda _ (chdir "unix") #t))
|
||||||
(add-after 'install 'install-private-headers
|
(add-after 'install 'install-private-headers
|
||||||
|
@ -73,9 +73,16 @@
|
||||||
;; PREFIX/share/man. The 'validate-documentation-location' phase is
|
;; PREFIX/share/man. The 'validate-documentation-location' phase is
|
||||||
;; not able to fix this up because the default install populates both
|
;; not able to fix this up because the default install populates both
|
||||||
;; PREFIX/man and PREFIX/share/man.
|
;; PREFIX/man and PREFIX/share/man.
|
||||||
#:configure-flags (list (string-append "--mandir="
|
#:configure-flags
|
||||||
(assoc-ref %outputs "out")
|
(list (string-append "--mandir="
|
||||||
"/share/man"))
|
(assoc-ref %outputs "out")
|
||||||
|
"/share/man")
|
||||||
|
;; This is needed when cross-compiling, see:
|
||||||
|
;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=719247
|
||||||
|
,@(if (%current-target-system)
|
||||||
|
'("tcl_cv_strtod_buggy=1"
|
||||||
|
"ac_cv_func_strtod=yes")
|
||||||
|
'()))
|
||||||
|
|
||||||
;; XXX: There are a few test failures (related to HTTP, most
|
;; XXX: There are a few test failures (related to HTTP, most
|
||||||
;; likely related to name resolution), but that doesn't cause
|
;; likely related to name resolution), but that doesn't cause
|
||||||
|
|
Reference in a new issue