On Fri, 2015-02-06 at 07:00 -0700, Eric Blake wrote:
> stdbuf uses LD_PRELOAD to tell a process in main() that it should use
> line or no buffering, regardless of whether the output file is a file.
> And cygwin supports LD_PRELOAD.  But to date, no one has helped figure
> out how to port it to cygwin (I assume it should work, but have not had
> time to try it - the difficulties lie more in getting the coreutils
> Makefile to target the difference in cygwin naming with .dll instead of
> .so and with .exe suffixes to worry about).

It would help if coreutils would use libtool, but I don't know if
upstream would be willing to consider that.  In the meantime, since
libstdbuf is just a module, the .so isn't a problem, and the build can
be worked around with a bit of a hack:

https://sourceforge.net/p/cygwin-ports/coreutils/ci/41db3dd6ed8d004e60b3005a9199e81306291b8c/

with the caveat that tests/misc/stdbuf.sh won't work in-tree.

--
Yaakov


Reply via email to