make sure to use makefile.shared on Mac

This commit is contained in:
Steffen Jaeckel 2017-06-13 12:25:25 +02:00
parent 048cbc55b0
commit 3995f971d7
3 changed files with 10 additions and 6 deletions

View File

@ -13,14 +13,18 @@ silent=@
silent_stdout= > /dev/null
endif
PLATFORM := $(shell uname | sed -e 's/_.*//')
ifneq ($(MAKECMDGOALS),clean)
ifeq ($(PLATFORM), Darwin)
$(error Can't build static library on Mac, please use makefile.shared)
endif
endif
# ranlib tools
ifndef RANLIB
ifeq ($(PLATFORM), Darwin)
RANLIB:=$(PREFIX)ranlib -c
else
RANLIB:=$(PREFIX)ranlib
endif
endif
INSTALL_CMD = install
#Output filenames for various targets.

View File

@ -7,6 +7,8 @@
#
# (GNU make only)
PLATFORM := $(shell uname | sed -e 's/_.*//')
ifndef LT
ifeq ($(PLATFORM), Darwin)
LT:=glibtool

View File

@ -7,8 +7,6 @@ VERSION=1.17
# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
VERSION_LT=0:117
PLATFORM := $(shell uname | sed -e 's/_.*//')
# Compiler and Linker Names
ifndef PREFIX
PREFIX:=