Because then you’ve got to use additional ifdefs per patch https://codereview.appspot.com/14604047/. Sorry Anthony, I died a little seeing
#if !defined(_WIN32) && !defined(PLAN9) The cmd/dist/build.c changes are fine as I’m messing around with similar edge cases. And of course getting [569]c to use the ANSI C preprocessor in order to consume the $GOROOT/include/bio.h is necessary. In any case, both patches 14604047 and 15750047 fix the Go libbio addition problem when building on Plan 9. Neither have made any progress in getting rolled up into the Go sources. I’m proposing modifying my patch, 15750047, to extract the four funcs from bgetc.c and bputc.c and put them into a blec.c so that cmd/dist will build just blec.c on Plan 9 and install it into $GOROOT/pkg/obj/plan9_$objtype/blec.$O for linking. On Dec 3, 2013, at 8:51 AM, Charles Forsyth <charles.fors...@gmail.com> wrote: > why can't it just use the one it expects? > why does it have to be the same as the one in /sys/src? > > > On 3 December 2013 14:42, erik quanstrom <quans...@quanstro.net> wrote: > > Does Go, the tool chain itself, need libbio? If not, then it is there > > yes. > > - erik > >