auto-determine correct libtool binary for MacOS

This fixes #83
This commit is contained in:
Steffen Jaeckel 2017-08-29 10:29:58 +02:00
parent c107b6593a
commit 3e2ebd3b47

View File

@ -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 .