aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-06-20 00:26:28 +0200
committerdec05eba <dec05eba@protonmail.com>2023-06-20 00:26:28 +0200
commita20068e23ca6e6d5834b1ce50aba34f405facd15 (patch)
treee30decdc71b67f3978f863e89e4184fab4a9d3c0 /build.sh
parent7f2099b3ca28b140ec8c9eed9a08c83c1e49c241 (diff)
Do not automatically install coolbits
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 51bb745..caa3176 100755
--- a/build.sh
+++ b/build.sh
@@ -7,11 +7,12 @@ opts="-O2 -g0 -DNDEBUG -Wall -Wextra"
[ -n "$DEBUG" ] && opts="-O0 -g3 -Wall -Wextra";
build_gsr_kms_server() {
+ extra_opts="-fstack-protector-all -fcf-protection=full"
dependencies="libdrm"
includes="$(pkg-config --cflags $dependencies)"
libs="$(pkg-config --libs $dependencies) -ldl"
- $CC -c kms/server/kms_server.c $opts $includes
- $CC -o gsr-kms-server -O2 kms_server.o $libs $opts
+ $CC -c kms/server/kms_server.c $opts $extra_opts $includes
+ $CC -o gsr-kms-server -O2 kms_server.o $libs $opts $extra_opts
}
build_gsr() {