build(make): support darwin cross-compile
(cherry picked from commit 4f0d463d49)
This commit is contained in:
parent
b4d4251427
commit
6813e8d5c1
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -32,7 +32,7 @@ SONAME_MAJOR := $(word 1,$(subst ., ,$(VERSION)))
|
|||
SONAME_MINOR := $(word 2,$(subst ., ,$(VERSION)))
|
||||
|
||||
# OS-specific bits
|
||||
ifeq ($(shell uname),Darwin)
|
||||
ifneq ($(findstring darwin,$(shell $(CC) -dumpmachine)),)
|
||||
SOEXT = dylib
|
||||
SOEXTVER_MAJOR = $(SONAME_MAJOR).$(SOEXT)
|
||||
SOEXTVER = $(SONAME_MAJOR).$(SONAME_MINOR).$(SOEXT)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue