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.
This commit is contained in:
Ludovic Courtès 2020-03-16 15:31:58 +01:00
parent 40a461fd97
commit d8f78f5448
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -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)