From 3e2ebd3b471cdbb4f196eeedf397842e02764b17 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Tue, 29 Aug 2017 10:29:58 +0200 Subject: [PATCH] auto-determine correct libtool binary for MacOS This fixes #83 --- makefile.shared | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/makefile.shared b/makefile.shared index 8f0e4ea..2805fc5 100644 --- a/makefile.shared +++ b/makefile.shared @@ -9,7 +9,16 @@ endif include makefile_include.mk -LT ?= libtool + +PLATFORM := $(shell uname | sed -e 's/_.*//') + +ifndef LT + ifeq ($(PLATFORM), Darwin) + LT:=glibtool + else + LT:=libtool + endif +endif LTCOMPILE = $(LT) --mode=compile --tag=CC $(CC) LCOV_ARGS=--directory .libs --directory .