Created
April 24, 2018 03:29
-
-
Save threevi/2024a75a002ecfce393097edbbac0619 to your computer and use it in GitHub Desktop.
Compile static C program with musl-gcc
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 <stdlib.h> | |
#include <stdio.h> | |
// Compile with `musl-gcc -static -Os musl-static.c -o musl-static` | |
int main() { | |
printf("Hello, Dave.\n"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment