aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-11-24 07:57:48 +0100
committerdec05eba <dec05eba@protonmail.com>2023-11-24 07:57:48 +0100
commit9b6dfa793dacc774d17c27658046857fed325ee9 (patch)
treed6bfd9b041369286c0cef56fea7b605c80e6352c /build.sh
parentcfd18afecec74f092da7e111a173d48ac0097cd4 (diff)
Fix build on 32-bit systems
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/build.sh b/build.sh
index eb03141..9bbb02e 100755
--- a/build.sh
+++ b/build.sh
@@ -18,12 +18,12 @@ build_gsr_gtk() {
dependencies="gtk+-3.0 x11 xrandr libpulse libdrm wayland-egl wayland-client"
includes="$(pkg-config --cflags $dependencies)"
libs="$(pkg-config --libs $dependencies) -ldl"
- gcc -c src/egl.c $opts $includes
+ $CC -c src/egl.c $opts $includes
$CC -c external/wlr-export-dmabuf-unstable-v1-protocol.c $opts $includes
- g++ -c src/main.cpp $opts $includes
- g++ -o gpu-screen-recorder-gtk egl.o wlr-export-dmabuf-unstable-v1-protocol.o main.o $libs $opts
+ $CXX -c src/main.cpp $opts $includes
+ $CXX -o gpu-screen-recorder-gtk egl.o wlr-export-dmabuf-unstable-v1-protocol.o main.o $libs $opts
}
build_wayland_protocol
build_gsr_gtk
-echo "Successfully built gpu-screen-recorder-gtk" \ No newline at end of file
+echo "Successfully built gpu-screen-recorder-gtk"