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

View file

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