ref: c6cea2ccac3532d77364a3fa4f7587024c1d8947
parent: b647a78bf2b046e79cf5d3598520facf60073d12
author: Martin Storsjö <[email protected]>
date: Mon Feb 24 07:05:21 EST 2014
Use -dynamiclib instead of -shared for building shared libraries on OS X Older toolchains don't recognize the -shared parameter.
--- a/build/platform-darwin.mk
+++ b/build/platform-darwin.mk
@@ -1,6 +1,7 @@
include build/platform-x86-common.mk
ASM = nasm
SHAREDLIBSUFFIX = dylib
+SHARED = -dynamiclib
CFLAGS += -Wno-deprecated-declarations -Werror -fPIC -DMACOS -DMT_ENABLED -MMD -MP
LDFLAGS += -lpthread
ASMFLAGS += --prefix _ -DNOPREFIX