Darwin fix for libretro build

This commit is contained in:
Anthony Pesch 2017-07-23 17:35:28 -04:00
parent 817e91e058
commit bfbfd9fb82
1 changed files with 4 additions and 0 deletions

View File

@ -188,7 +188,11 @@ SOURCES_C += $(CORE_DIR)/src/core/filesystem_win.c \
endif
# work around glad using dlopen, etc. which are actually unused
ifneq ($(findstring Darwin,$(shell uname -a)),)
LDFLAGS += -undefined dynamic_lookup
else
LDFLAGS += -Wl,--unresolved-symbols=ignore-all
endif
SOURCES_C += $(CORE_DIR)/deps/glad/src/glad.c
ifdef WITH_DYNAREC