We support that. If you want a freedom-optimized build:
make -j16 MODE=tinylinuxbsd
Will produce ELF executables that run on Linux, FreeBSD, NetBSD, and OpenBSD. You'll never have to worry about being red-flagged by Microsoft. You won't have worry about Apple breaking your binaries. You won't have to worry about Glibc's license or wine binfmt_misc issues. Your binaries will be smaller, starting at 8kb in size. It's real nice and still supports 4x more platforms than the existing tools. If you use it, please note that "tiny" modes disable a lot of cool features like --ftrace and --strace. You can turn them back on by putting:
ifeq ($(MODE), linuxbsd)
CONFIG_CPPFLAGS += \
$(BACKTRACES) \
$(FTRACE) \
-DSYSDEBUG \
-DSUPPORT_VECTOR=113 \
-O2
TARGET_ARCH ?= \
-msse3
endif
In either ~/.cosmo.mk or build/config.mk. Then you'd say `make MODE=linuxbsd`. We also ship a `tinylinux` prebuilt amalgamation on
https://justine.lol/cosmopolitan/download.htmlLastly, you can always change the .com extension to .exe. I would have chosen the latter, but I think UNIX has more in common with DOS than it does with Windows. I know people in the Microsoft camp hold negative associations with .com. But I didn't want people in other camps to think APE is just a Windows program.