diff --git a/Makefile b/Makefile index cd4d39d8..9d95344f 100644 --- a/Makefile +++ b/Makefile @@ -465,7 +465,10 @@ ifeq ($(DISCORD_SDK), 1) endif else ifeq ($(OSX_BUILD),1) # needs testing - DISCORD_SDK_LIBS := lib/discordsdk/discord_game_sdk.dylib + # HACKY! Instead of figuring out all of the dynamic library linking madness... + # I copied the library and gave it two names. + # This really shouldn't be required, but I got tired of trying to do it the "right way" + DISCORD_SDK_LIBS := lib/discordsdk/discord_game_sdk.dylib lib/discordsdk/libdiscord_game_sdk.dylib else DISCORD_SDK_LIBS := lib/discordsdk/libdiscord_game_sdk.so endif @@ -726,7 +729,7 @@ else ifeq ($(TARGET_RPI),1) LDFLAGS := $(OPT_FLAGS) -lm $(BACKEND_LDFLAGS) -no-pie else ifeq ($(OSX_BUILD),1) - LDFLAGS := -lm $(BACKEND_LDFLAGS) -no-pie -lpthread + LDFLAGS := -lm $(BACKEND_LDFLAGS) -lpthread else LDFLAGS := $(BITS) -march=$(TARGET_ARCH) -lm $(BACKEND_LDFLAGS) -no-pie -lpthread diff --git a/lib/discordsdk/libdiscord_game_sdk.dylib b/lib/discordsdk/libdiscord_game_sdk.dylib new file mode 100644 index 00000000..24045f79 Binary files /dev/null and b/lib/discordsdk/libdiscord_game_sdk.dylib differ diff --git a/src/pc/network/socket/socket_linux.h b/src/pc/network/socket/socket_linux.h index 5bb91da8..12a8b5a2 100644 --- a/src/pc/network/socket/socket_linux.h +++ b/src/pc/network/socket/socket_linux.h @@ -6,6 +6,7 @@ #include #include #include +#include #define SOCKET unsigned int #define INVALID_SOCKET (unsigned int)(-1) diff --git a/tools/Makefile b/tools/Makefile index d663fb0a..7bec0619 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -1,6 +1,6 @@ CC := gcc CXX := g++ -CFLAGS := -I../include -I. -Wall -Wextra -Wno-unused-parameter -pedantic -std=c99 -O2 -s +CFLAGS := -I../include -I. -Wall -Wextra -Wno-unused-parameter -Wno-error=implicit-function-declaration -pedantic -std=c99 -O2 -s LDFLAGS := -lm PROGRAMS := n64graphics n64graphics_ci mio0 n64cksum textconv patch_libultra_math aifc_decode aiff_extract_codebook vadpcm_enc tabledesign extract_data_for_mio skyconv