From a3678cd741a8914cf239be88f6ac7f29ca44b62c Mon Sep 17 00:00:00 2001 From: Kesefon Date: Sat, 31 Oct 2020 16:36:05 +0100 Subject: [PATCH] Statically link discord-rpc lib --- cpp/build-linux.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/build-linux.sh b/cpp/build-linux.sh index 07a1fdd..23d80f7 100755 --- a/cpp/build-linux.sh +++ b/cpp/build-linux.sh @@ -1,9 +1,9 @@ #! /bin/sh -rm libs/ discord-rpc/build/ +rm libs/ discord-rpc/build/ -r cd discord-rpc/ mkdir build cd build -cmake .. -DCMAKE_INSTALL_PREFIX=../../libs -DUSE_STATIC_CRT=ON -DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_C_FLAGS=-m32 +cmake .. -DCMAKE_INSTALL_PREFIX=../../libs -DUSE_STATIC_CRT=ON -DBUILD_EXAMPLES=OFF -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_C_FLAGS=-m32 cmake --build . --config Release --target install cd ../../ -g++ -m32 -fPIC GRPCTest.cpp -shared -o gmcl_fluffydiscord_linux.dll -Igmod-module-base/include/GarrysMod/Lua -Ilibs/include -Llibs/lib64 -ldiscord-rpc -fpermissive \ No newline at end of file +g++ -m32 -fPIC GRPCTest.cpp libs/lib/libdiscord-rpc.a -shared -o gmcl_fluffydiscord_linux.dll -Igmod-module-base/include/GarrysMod/Lua -Ilibs/include -fpermissive \ No newline at end of file