Auto merge of #2820 - str4d:darwin-build-patches, r=str4d

[macOS] Darwin build patches

Part of #2246.
This commit is contained in:
Homu
2018-04-03 12:44:24 -07:00
18 changed files with 187 additions and 160 deletions

View File

@@ -141,7 +141,10 @@ ifeq ($(PROFILE_OP_COUNTS),1)
endif
ifeq ($(STATIC),1)
CXXFLAGS += -static -DSTATIC
ifneq ($(PLATFORM),darwin)
CXXFLAGS += -static
endif
CXXFLAGS += -DSTATIC
else
CXXFLAGS += -fPIC
endif