diff options
| author | 2026-11-10 09:28:03 +0000 | |
|---|---|---|
| committer | 2026-11-10 09:28:03 +0000 | |
| commit | f3c478bc0ce492e9ebc516f445312dfd9e6a2a7a (patch) | |
| tree | dfabf11ce902f157508fce9e4db2316c00a247da /build.sh | |
| download | lab-04-f3c478bc0ce492e9ebc516f445312dfd9e6a2a7a.tar.gz | |
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 | ||
