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