diff --git a/bsnes/target-libretro/GNUmakefile b/bsnes/target-libretro/GNUmakefile index 9f1343e8..f64c7242 100644 --- a/bsnes/target-libretro/GNUmakefile +++ b/bsnes/target-libretro/GNUmakefile @@ -10,11 +10,11 @@ obj/libretro.o: target-libretro/libretro.cpp all: $(objects) ifeq ($(platform),linux) - $(strip $(compiler) -o out/$(name).so -shared $(objects) -Wl,--no-undefined -Wl,--version-script=target-libretro/link.T -Wl,-Bdynamic -lpthread -ldl -lgomp) + $(strip $(compiler) -o out/$(name).so -shared $(objects) -Wl,--no-undefined -Wl,--version-script=target-libretro/link.T -Wl,-Bdynamic $(options)) else ifeq ($(platform),windows) - $(strip $(compiler) -o out/$(name).dll -shared $(objects) -Wl,--no-undefined -Wl,--version-script=target-libretro/link.T -static-libgcc -static-libstdc++ -Wl,-Bstatic -lws2_32 -lpthread -lgomp -Wl,-Bdynamic) + $(strip $(compiler) -o out/$(name).dll -shared $(objects) -Wl,--no-undefined -Wl,--version-script=target-libretro/link.T -Wl,-Bdynamic $(options)) else ifeq ($(platform),macos) - $(strip $(compiler) -o out/$(name).dylib -shared $(objects) -lpthread -ldl) + $(strip $(compiler) -o out/$(name).dylib -shared $(objects) $(options)) else ifeq ($(platform), ios-arm64) ifeq ($(IOSSDK),) IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path) diff --git a/bsnes/target-libretro/libretro.cpp b/bsnes/target-libretro/libretro.cpp index 7344e734..3a804e9d 100644 --- a/bsnes/target-libretro/libretro.cpp +++ b/bsnes/target-libretro/libretro.cpp @@ -484,6 +484,7 @@ RETRO_API void retro_reset() RETRO_API void retro_run() { check_variables(); + input_poll(); emulator->run(); }