compile statically
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Bruno Rybársky 2022-05-29 10:58:43 +02:00
parent ab4ddaf365
commit 1ebdd68873
3 changed files with 4 additions and 2 deletions

@ -9,7 +9,7 @@ steps:
commands:
- apk add build-base ncurses-dev
- mkdir build
- gcc -o build/main main.c -lncurses
- gcc -static -o build/main main.c -lncurses -ltinfo
artifacts:
- name: compiled
path: main

4
.vscode/tasks.json vendored

@ -13,13 +13,15 @@
],
"command": "/usr/bin/gcc",
"args": [
"-static",
"-fdiagnostics-color=always",
"-g",
"${workspaceFolder}/main.c",
"-o",
//include ncurses
"${fileDirname}/${fileBasenameNoExtension}",
"-lncurses"
"-lncurses",
"-ltinfo"
],
"options": {
"cwd": "${fileDirname}"

BIN
main

Binary file not shown.