Greetings, As many of you know, musl has been ported to winnt (and has an already working bash/dash, core shell utilities, and a native toolchain) without applying any patches to the upstream source tree.[1] Thus far, however, we have been building musl using a deviant script that we now hope to retire. As musl's build system is currently being revisited, I would like propose (with the attached patch as a reference) the addition of the following features: 1. add rules for $(ARCH)/%.c: C-language arch-specific files. 2. --arch=ARCH: alternate arch-specific source files. at the present, ARCH is derived from TARGET and has no corresponding configure switch. Adding --arch support would allow setting nt32 and nt64 as the arch directories for winnt's i686 and x86_64 targets, respectively. 3. PE target detection, shared library linker flags. at the present, musl's configure script assumes ELF targets as well as its own loader routine (_dlstart). PE target support could be added with only a minimal effort if we a) detect PE targets using the compiler, and b) set PE/ELF-specific linker flags accordingly. Best regards, z.g. [1] git://midipix.org/mmglue