mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
Merge pull request #237 from white-axe/macos
Fix macOS builds with Xcode 15 or later
This commit is contained in:
commit
c9096e42ee
1 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,8 @@ LIBDIR := $(BUILD_PREFIX)/lib
|
|||
INCLUDEDIR := $(BUILD_PREFIX)/include
|
||||
DOWNLOADS := ${PWD}/downloads/$(HOST)
|
||||
NPROC := $(shell sysctl -n hw.ncpu)
|
||||
CFLAGS := -I$(INCLUDEDIR) $(TARGETFLAGS) $(DEFINES) -O3
|
||||
# Explicitly including freetype2 dir for now. macOS is having weird issues with ft2build.h
|
||||
CFLAGS := -I$(INCLUDEDIR) -I$(INCLUDEDIR)/freetype2 $(TARGETFLAGS) $(DEFINES) -O3
|
||||
LDFLAGS := -L$(LIBDIR)
|
||||
CC := clang -arch $(ARCH)
|
||||
PKG_CONFIG_LIBDIR := $(BUILD_PREFIX)/lib/pkgconfig
|
||||
|
@ -317,6 +318,7 @@ $(DOWNLOADS)/ruby/configure: $(DOWNLOADS)/ruby/configure.ac
|
|||
|
||||
$(DOWNLOADS)/ruby/configure.ac:
|
||||
$(CLONE) $(GITHUB)/mkxp-z/ruby $(DOWNLOADS)/ruby --single-branch -b mkxp-z-3.1.3 --depth 1;
|
||||
sed -i '' '/: $${PRELOADENV=DYLD_INSERT_LIBRARIES}/g' $(DOWNLOADS)/ruby/configure.ac
|
||||
|
||||
# ====
|
||||
init_dirs:
|
||||
|
|
Loading…
Add table
Reference in a new issue