Fixed Linux builds

This commit is contained in:
MysterD 2020-09-14 23:26:55 -07:00
parent 9a0c07e53c
commit a675f4efd5
3 changed files with 5 additions and 2 deletions

View File

@ -431,7 +431,7 @@ else ifeq ($(OSX_BUILD),1)
# needs testing
DISCORD_SDK_LIBS := lib/discordsdk/discord_game_sdk.dylib
else
DISCORD_SDK_LIBS := lib/discordsdk/discord_game_sdk.so
DISCORD_SDK_LIBS := lib/discordsdk/libdiscord_game_sdk.so
endif
# Automatic dependency files
@ -692,9 +692,11 @@ endif
ifeq ($(WINDOWS_BUILD),1)
LDFLAGS += -L"ws2_32" -lwsock32
LDFLAGS += -Wl,-Bdynamic -ldiscord_game_sdk -Wl,-Bstatic
else
LDFLAGS += -ldiscord_game_sdk -Wl,-rpath . -Wl,-rpath lib/discordsdk
endif
LDFLAGS += -Wl,-Bdynamic -ldiscord_game_sdk -Wl,-Bstatic
# End of LDFLAGS

View File

@ -9,6 +9,7 @@
#include <windows.h>
#else
#include <unistd.h>
#define MAX_PATH 1024
#endif
#define MAX_LAUNCH_CMD (MAX_PATH + 12)