Last active
June 11, 2021 14:20
-
-
Save marcelmaatkamp/5e4edcf9e48ee246ffb07229a369026d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
gcc \ | |
-I/usr/local/include -g -Os -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone -fno-omit-frame-pointer -pg -mnop-mcount\ | |
conftest.c -o conftest.dbg\ | |
-fuse-ld=bfd -Wl,-T,/cosmopolitan/ape.lds -include /cosmopolitan/cosmopolitan.h /cosmopolitan/crt.o /cosmopolitan/ape.o /cosmopolitan/cosmopolitan.a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main () { | |
FILE *f = fopen ("conftest.out", "w"); | |
return ferror (f) || fclose (f) != 0; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment