diff options
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..c2cd3b9 --- /dev/null +++ b/build.sh | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set -xe | ||
| 4 | |||
| 5 | gcc -ggdb3 -std=gnu99 -O3 -march=native \ | ||
| 6 | -Wall -Wextra -Wno-switch -Wno-implicit-fallthrough \ | ||
| 7 | -I./src -Wl,-rpath,$HOME/.guix-profile/lib/ \ | ||
| 8 | -D_GNU_SOURCE -o ./http-server -lmagic \ | ||
| 9 | ./src/http-server.c | ||
