mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-28 23:13:02 +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
|
# 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
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue