Skip to content

Commit bc67465

Browse files
committed
Add macOS arch to CFLAGS for zstd
1 parent 880be99 commit bc67465

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,11 +616,13 @@ endif
616616
ifeq ($(NATIVE), osx)
617617
DEFINES += -DMACOSX
618618
CXXFLAGS += -mmacosx-version-min=10.15
619+
CFLAGS += -mmacosx-version-min=10.15
619620
LDFLAGS += -mmacosx-version-min=10.15 -framework CoreFoundation -Wl,-headerpad_max_install_names
620621
# doesn't use GNU ar
621622
THIN_AR=0
622623
ifeq ($(UNIVERSAL_BINARY), 1)
623624
CXXFLAGS += -arch x86_64 -arch arm64
625+
CFLAGS += -arch x86_64 -arch arm64
624626
LDFLAGS += -arch x86_64 -arch arm64
625627
endif
626628
ifdef FRAMEWORK

0 commit comments

Comments
 (0)