From ffa17cc6ca28fb876062ccc9064a1cf6e620d7e0 Mon Sep 17 00:00:00 2001 From: Alexander Arvidsson <2972103+AlexanderArvidsson@users.noreply.github.com> Date: Sat, 28 Dec 2024 03:57:19 +0100 Subject: [PATCH] build_clibs_linux.sh: Build shared libraries --- sokol/build_clibs_linux.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sokol/build_clibs_linux.sh b/sokol/build_clibs_linux.sh index 073ff82..bad1701 100755 --- a/sokol/build_clibs_linux.sh +++ b/sokol/build_clibs_linux.sh @@ -5,8 +5,11 @@ build_lib_x64_release() { dst=$2 backend=$3 echo $dst + # static cc -pthread -c -O2 -DNDEBUG -DIMPL -D$backend c/$src.c ar rcs $dst.a $src.o + # shared + cc -pthread -shared -O2 -fPIC -DNDEBUG -DIMPL -D$backend -o $dst.so c/$src.c } build_lib_x64_debug() { @@ -14,8 +17,11 @@ build_lib_x64_debug() { dst=$2 backend=$3 echo $dst + # static cc -pthread -c -g -DIMPL -D$backend c/$src.c ar rcs $dst.a $src.o + # shared + cc -pthread -shared -g -fPIC -DIMPL -D$backend -o $dst.so c/$src.c } # x64 + GL + Release