ref: 42fb4f562e0148b61ace9ce3733638e4fbbe0c53
parent: 44522094bfdd4c93176e12d233905d93ea12c50a
author: Martin Storsjö <[email protected]>
date: Wed Feb 19 06:50:45 EST 2014
Make the -shared flag an overrideable variable
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,7 @@
BUILDTYPE=Release
V=Yes
PREFIX=/usr/local
+SHARED=-shared
ifeq (,$(wildcard ./gtest))
HAVE_GTEST=No
@@ -122,7 +123,7 @@
$(LIBPREFIX)wels.$(SHAREDLIBSUFFIX): $(ENCODER_OBJS) $(DECODER_OBJS) $(PROCESSING_OBJS) $(COMMON_OBJS)
$(QUIET)rm -f $@
- $(QUIET_CXX)$(CXX) -shared $(LDFLAGS) $(CXX_LINK_O) $+
+ $(QUIET_CXX)$(CXX) $(SHARED) $(LDFLAGS) $(CXX_LINK_O) $+
install: $(LIBPREFIX)wels.$(LIBSUFFIX) $(LIBPREFIX)wels.$(SHAREDLIBSUFFIX)
mkdir -p $(PREFIX)/lib