From 45f437c6331f2e331f227e3ebba2d2ef44142151 Mon Sep 17 00:00:00 2001 From: Pierre Boutillier Date: Sat, 14 Mar 2015 10:31:52 +0100 Subject: Fix Bug 3548 - Makefile should fallback gracefully in the absence of codesign --- Makefile.build | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.build b/Makefile.build index c3936c1a7a..57c22c6588 100644 --- a/Makefile.build +++ b/Makefile.build @@ -101,12 +101,12 @@ BYTEFLAGS=-thread $(CAMLDEBUG) $(USERFLAGS) OPTFLAGS=-thread $(CAMLDEBUGOPT) $(CAMLTIMEPROF) $(USERFLAGS) DEPFLAGS= $(LOCALINCLUDES) -I ide -I ide/utils -ifeq ($(ARCH),Darwin) +ifeq ($(shell which codesign > /dev/null && echo $(ARCH)),Darwin) LINKMETADATA=-ccopt "-sectcreate __TEXT __info_plist config/Info-$(notdir $@).plist" -CODESIGN=codesign -s - +CODESIGN:=codesign -s - else LINKMETADATA= -CODESIGN=true +CODESIGN:=true endif define bestocaml -- cgit v1.2.3