1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-21 01:30:29 +02:00

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

View File

@@ -546,7 +546,9 @@ wrapper for the cross-linker for that target, called 'TARGET-ld'."
'(string-append bin "/ld")))
(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~%"
(assoc-ref %build-inputs "binutils")
out)