diff --git a/cores/libretro-test-gl/Makefile b/cores/libretro-test-gl/Makefile index f3e35dce53..f70178d36f 100644 --- a/cores/libretro-test-gl/Makefile +++ b/cores/libretro-test-gl/Makefile @@ -38,7 +38,7 @@ ifeq ($(platform), unix) fpic := -fPIC SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined GL_LIB := -lGL -else ifeq ($(platform), osx) +else ifneq (,$(findstring osx,$(platform))) TARGET := $(TARGET_NAME)_libretro.dylib fpic := -fPIC SHARED := -dynamiclib diff --git a/cores/libretro-test/Makefile b/cores/libretro-test/Makefile index c3bea09abe..8556c99756 100644 --- a/cores/libretro-test/Makefile +++ b/cores/libretro-test/Makefile @@ -28,7 +28,7 @@ else ifeq ($(platform), linux-portable) fpic := -fPIC -nostdlib SHARED := -shared -Wl,--version-script=link.T LIBM := -else ifeq ($(platform), osx) +else ifneq (,$(findstring osx,$(platform))) TARGET := $(TARGET_NAME)_libretro.dylib fpic := -fPIC SHARED := -dynamiclib