mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-01 07:16:39 +01:00
gnu: d-tools: Fix build.
* gnu/packages/dlang.scm (d-tools)[arguments]: Set target CC and LD environment variables. [native-inputs]: Add ld-gold-wrapper. Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
This commit is contained in:
parent
dc8c869724
commit
5f5a78872e
1 changed files with 7 additions and 2 deletions
|
@ -62,13 +62,15 @@ (define-public d-tools
|
||||||
"0c8w373rv6iz3xfid94w40ncv2lr2ncxi662qsr4lda4aghczmq7"))))
|
"0c8w373rv6iz3xfid94w40ncv2lr2ncxi662qsr4lda4aghczmq7"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(delete 'configure)
|
(delete 'configure)
|
||||||
(delete 'check) ; There is no Makefile, so there's no 'make check'.
|
(delete 'check) ; There is no Makefile, so there's no 'make check'.
|
||||||
(replace
|
(replace
|
||||||
'build
|
'build
|
||||||
(lambda _
|
(lambda _
|
||||||
|
(setenv "CC" ,(cc-for-target))
|
||||||
|
(setenv "LD" ,(ld-for-target))
|
||||||
(invoke "ldc2" "rdmd.d")))
|
(invoke "ldc2" "rdmd.d")))
|
||||||
(replace
|
(replace
|
||||||
'install
|
'install
|
||||||
|
@ -76,7 +78,10 @@ (define-public d-tools
|
||||||
(let ((bin (string-append (assoc-ref outputs "out") "/bin")))
|
(let ((bin (string-append (assoc-ref outputs "out") "/bin")))
|
||||||
(install-file "rdmd" bin)))))))
|
(install-file "rdmd" bin)))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list ldc))
|
(list ldc
|
||||||
|
(module-ref (resolve-interface
|
||||||
|
'(gnu packages commencement))
|
||||||
|
'ld-gold-wrapper)))
|
||||||
(home-page "https://github.com/dlang/tools")
|
(home-page "https://github.com/dlang/tools")
|
||||||
(synopsis "Useful D-related tools")
|
(synopsis "Useful D-related tools")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue