Skip to content

Commit

Permalink
Mix MacOS x86 builds too
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgfnet committed Aug 27, 2023
1 parent 9d46b84 commit 188887e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,19 @@ else ifeq ($(platform), osx)
endif
OSXVER = `sw_vers -productVersion | cut -d. -f 2`
OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"`
fpic += -mmacosx-version-min=10.1
ifeq ($(OSX_LT_MAVERICKS),YES)
fpic += -mmacosx-version-min=10.1
endif
SHARED := -dynamiclib
ifeq ($(HAVE_DYNAREC),1)
MMAP_JIT_CACHE = 1
endif

ifeq ($(CROSS_COMPILE),1)
ifeq ($(CROSS_COMPILE),1)
TARGET_RULE = -target $(LIBRETRO_APPLE_PLATFORM) -isysroot $(LIBRETRO_APPLE_ISYSROOT)
CFLAGS += $(TARGET_RULE)
LDFLAGS += $(TARGET_RULE)
endif
endif

CFLAGS += $(ARCHFLAGS)
LDFLAGS += $(ARCHFLAGS)
Expand Down

0 comments on commit 188887e

Please sign in to comment.