aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-07-18 03:32:36 +0200
committerdec05eba <dec05eba@protonmail.com>2023-07-18 03:32:36 +0200
commit8230d23acb5efbb3fde2149e0147e5e2261fce83 (patch)
tree69339a371558d337703a6ea54e2a42704962cad6 /build.sh
parentb2644a9881ea65ff64234953fcd97664a60b98af (diff)
Remove -O2 and use globally defined opt value
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 4295d3f..c93b428 100755
--- a/build.sh
+++ b/build.sh
@@ -21,7 +21,7 @@ build_gsr_kms_server() {
includes="$(pkg-config --cflags $dependencies)"
libs="$(pkg-config --libs $dependencies) -ldl"
$CC -c kms/server/kms_server.c $opts $extra_opts $includes
- $CC -o gsr-kms-server -O2 kms_server.o $libs $opts $extra_opts
+ $CC -o gsr-kms-server kms_server.o $libs $opts $extra_opts
}
build_gsr() {
@@ -48,7 +48,7 @@ build_gsr() {
#$CC -c external/wlr-export-dmabuf-unstable-v1-protocol.c $opts $includes
$CXX -c src/sound.cpp $opts $includes
$CXX -c src/main.cpp $opts $includes
- $CXX -o gpu-screen-recorder -O2 capture.o nvfbc.o kms_client.o egl.o cuda.o xnvctrl.o overclock.o window_texture.o shader.o \
+ $CXX -o gpu-screen-recorder capture.o nvfbc.o kms_client.o egl.o cuda.o xnvctrl.o overclock.o window_texture.o shader.o \
color_conversion.o cursor.o utils.o library_loader.o xcomposite_cuda.o xcomposite_vaapi.o kms_vaapi.o kms_cuda.o sound.o main.o $libs $opts
}