ref: 703ed1d86e0a01b56d8acdb988dc07dbfe9f2e30
parent: 6dc3f72ef8c25058bb5ca4b4279891811e216592
author: Guangwei Wang <[email protected]>
date: Tue Dec 8 04:52:03 EST 2015
add stripped lib for firefox
--- a/Makefile
+++ b/Makefile
@@ -66,6 +66,11 @@
LDFLAGS += -fsanitize=address
endif
+STRIP_FLAGS := -S
+ifeq (linux, $((OS)))
+STRIP_FLAGS := -g
+endif
+
# Make sure the all target is the first one
all: libraries binaries
@@ -220,10 +225,16 @@
$(LIBPREFIX)$(PROJECT_NAME).$(LIBSUFFIX): $(ENCODER_OBJS) $(DECODER_OBJS) $(PROCESSING_OBJS) $(COMMON_OBJS)
$(QUIET)rm -f $@
$(QUIET_AR)$(AR) $(AR_OPTS) $+
+ifeq (True, $(DEBUGSYMBOLS))
+ strip $(STRIP_FLAGS) $@ -o $(LIBPREFIX)$(PROJECT_NAME)_strip.$(LIBSUFFIX)
+endif
$(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXVER): $(ENCODER_OBJS) $(DECODER_OBJS) $(PROCESSING_OBJS) $(COMMON_OBJS)
$(QUIET)rm -f $@
$(QUIET_CXX)$(CXX) $(SHARED) $(CXX_LINK_O) $+ $(LDFLAGS) $(SHLDFLAGS)
+ifeq (True, $(DEBUGSYMBOLS))
+ strip $(STRIP_FLAGS) $@ -o $(LIBPREFIX)$(PROJECT_NAME)_strip.$(SHAREDLIBSUFFIXVER)
+endif
ifneq ($(SHAREDLIBSUFFIXVER),$(SHAREDLIBSUFFIX))
$(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX): $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXVER)