I've just built WSL from git master. On running:
make prefix=`pwd`/staged install
every file throughout the 'staged' tree is marked as executable, where none actually should be.
Following up, in Makefile.in, I see several instances of:
$(INSTALL) $(INSTALL_FLAGS) ...
This is wrong; every such instance should be:
with INSTALL_DATA as already defined by AC_PROG_INSTALL, and made available by AC_SUBST, when running the existing configure script.
Attached patch corrects this defect. Note that I have left the $(INSTALL_FLAGS) in place, as an adjunct to the definition of INSTALL_DATA. Feel free to keep it so, if you wish, but my preference would be to remove it; I'm aware of no standard usage which mandates it, and it does seem of dubious value.