Skip to content

Instantly share code, notes, and snippets.

@threevi
Created April 24, 2018 03:29
Show Gist options
  • Save threevi/2024a75a002ecfce393097edbbac0619 to your computer and use it in GitHub Desktop.
Save threevi/2024a75a002ecfce393097edbbac0619 to your computer and use it in GitHub Desktop.
Compile static C program with musl-gcc
#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