mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-12-22 16:30:23 +00:00
Fixed Linux builds
This commit is contained in:
parent
9a0c07e53c
commit
a675f4efd5
3 changed files with 5 additions and 2 deletions
6
Makefile
6
Makefile
|
@ -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
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include <windows.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#define MAX_PATH 1024
|
||||
#endif
|
||||
|
||||
#define MAX_LAUNCH_CMD (MAX_PATH + 12)
|
||||
|
|
Loading…
Reference in a new issue