Skip to content
Snippets Groups Projects
Unverified Commit d8f78f54 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

gnu: ld-wrapper: Use _IOLBF on Guile 2.0 only.

* gnu/packages/base.scm (make-ld-wrapper)[arguments]: Wrap use of
'_IOLBF' in 'cond-expand' and use 'line instead on Guile > 2.0.
parent 40a461fd
No related branches found
No related tags found
No related merge requests found
...@@ -546,7 +546,9 @@ (define* (make-ld-wrapper name #:key ...@@ -546,7 +546,9 @@ (define* (make-ld-wrapper name #:key
'(string-append bin "/ld"))) '(string-append bin "/ld")))
(go (string-append ld ".go"))) (go (string-append ld ".go")))
(setvbuf (current-output-port) _IOLBF) (setvbuf (current-output-port)
(cond-expand (guile-2.0 _IOLBF)
(else 'line)))
(format #t "building ~s/bin/ld wrapper in ~s~%" (format #t "building ~s/bin/ld wrapper in ~s~%"
(assoc-ref %build-inputs "binutils") (assoc-ref %build-inputs "binutils")
out) out)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment