From e3402ce44f6286fc07962740b061962d270ed554 Mon Sep 17 00:00:00 2001 From: Andres Amaya Garcia Date: Wed, 20 Jun 2018 10:43:21 +0100 Subject: [PATCH] Enable APPLE_BUILD in makefile if using system ar --- library/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/Makefile b/library/Makefile index 857e977e9..353bd8bec 100644 --- a/library/Makefile +++ b/library/Makefile @@ -22,8 +22,10 @@ endif ifdef WINDOWS WINDOWS_BUILD=1 else ifeq ($(shell uname -s),Darwin) +ifeq ($(AR),ar) APPLE_BUILD ?= 1 endif +endif # To compile as a shared library: ifdef SHARED