diff --git a/Makefile b/Makefile index f54ebe8d2..8be991c97 100644 --- a/Makefile +++ b/Makefile @@ -375,6 +375,7 @@ ifeq ($(PLATFORM),darwin) CC=$(MACOSX_ARCH)-apple-darwin$(DARWIN)-cc RANLIB=$(MACOSX_ARCH)-apple-darwin$(DARWIN)-ranlib + LIPO=$(MACOSX_ARCH)-apple-darwin$(DARWIN)-lipo ifeq ($(call bin_path, $(CC)),) $(error Unable to find osxcross $(CC)) @@ -382,6 +383,10 @@ ifeq ($(PLATFORM),darwin) endif endif + ifndef LIPO + LIPO=lipo + endif + BASE_CFLAGS += -fno-strict-aliasing -fno-common -pipe BASE_CFLAGS += -D_THREAD_SAFE=1