Skip to content

Instantly share code, notes, and snippets.

@marcelmaatkamp
Last active June 11, 2021 14:40
Show Gist options
  • Save marcelmaatkamp/cca7056b0070be2203327a37a41d0cf1 to your computer and use it in GitHub Desktop.
Save marcelmaatkamp/cca7056b0070be2203327a37a41d0cf1 to your computer and use it in GitHub Desktop.
cosmopolitan: ./configure flags
./configure \
CFLAGS="-I/usr/local/include -include /cosmopolitan/cosmopolitan.h -g -Os -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone -fno-omit-frame-pointer -pg -mnop-mcount" \
CPPFLAGS="-I/usr/local/include -include /cosmopolitan/cosmopolitan.h -g -Os -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone -fno-omit-frame-pointer -pg -mnop-mcount" \
LIBS="-fuse-ld=bfd -Wl,-T,/cosmopolitan/ape.lds -include /cosmopolitan/cosmopolitan.h /cosmopolitan/crt.o /cosmopolitan/ape.o /cosmopolitan/cosmopolitan.a"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment