From ac65f3adc8a51035100a65cdfe1ee6f5cfe59f0b Mon Sep 17 00:00:00 2001 From: Guangwei Wang Date: Mon, 27 Jun 2016 12:41:59 +0800 Subject: [PATCH] rename debug symbols file's name --- Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e8364301..9301f4cc 100644 --- a/Makefile +++ b/Makefile @@ -56,6 +56,7 @@ USE_ASM = Yes ifeq ($(DEBUGSYMBOLS), True) CFLAGS += -g CXXFLAGS += -g +DEBUGSYMBOLS_TAG := _debug_symbols endif else CFLAGS += $(CFLAGS_DEBUG) @@ -227,19 +228,24 @@ $(LIBPREFIX)$(PROJECT_NAME).$(LIBSUFFIX): $(ENCODER_OBJS) $(DECODER_OBJS) $(PROC $(QUIET)rm -f $@ $(QUIET_AR)$(AR) $(AR_OPTS) $+ ifeq (True, $(DEBUGSYMBOLS)) - strip $(STRIP_FLAGS) $@ -o $(LIBPREFIX)$(PROJECT_NAME)_stripped.$(LIBSUFFIX) + cp $@ $(LIBPREFIX)$(PROJECT_NAME)$(DEBUGSYMBOLS_TAG).$(LIBSUFFIX) + strip $(STRIP_FLAGS) $@ -o $@ 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)_stripped.$(SHAREDLIBSUFFIXVER) + cp $@ $(LIBPREFIX)$(PROJECT_NAME)$(DEBUGSYMBOLS_TAG).$(SHAREDLIBSUFFIXVER) + strip $(STRIP_FLAGS) $@ -o $@ endif ifneq ($(SHAREDLIBSUFFIXVER),$(SHAREDLIBSUFFIX)) $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX): $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXVER) $(QUIET)ln -sfn $+ $@ +ifeq (True, $(DEBUGSYMBOLS)) + $(QUIET)ln -sfn $(LIBPREFIX)$(PROJECT_NAME)$(DEBUGSYMBOLS_TAG).$(SHAREDLIBSUFFIX) $(LIBPREFIX)$(PROJECT_NAME)$(DEBUGSYMBOLS_TAG).$(SHAREDLIBSUFFIXVER) +endif endif ifeq ($(HAVE_GMP_API),Yes) @@ -258,14 +264,15 @@ $(LIBPREFIX)$(MODULE_NAME).$(SHAREDLIBSUFFIXVER): $(MODULE_OBJS) $(ENCODER_OBJS) $(QUIET)rm -f $@ $(QUIET_CXX)$(CXX) $(SHARED) $(CXX_LINK_O) $+ $(LDFLAGS) $(SHLDFLAGS) $(MODULE_LDFLAGS) ifeq (True, $(DEBUGSYMBOLS)) - strip $(STRIP_FLAGS) $@ -o $(LIBPREFIX)$(MODULE_NAME)_stripped.$(SHAREDLIBSUFFIXVER) + cp $@ $(LIBPREFIX)$(MODULE_NAME)$(DEBUGSYMBOLS_TAG).$(SHAREDLIBSUFFIXVER) + strip $(STRIP_FLAGS) $@ -o $@ endif ifneq ($(SHAREDLIBSUFFIXVER),$(SHAREDLIBSUFFIX)) $(MODULE): $(LIBPREFIX)$(MODULE_NAME).$(SHAREDLIBSUFFIXVER) $(QUIET)ln -sfn $+ $@ ifeq (True, $(DEBUGSYMBOLS)) - $(QUIET)ln -sfn $(LIBPREFIX)$(MODULE_NAME)_stripped.$(SHAREDLIBSUFFIXVER) $(LIBPREFIX)$(MODULE_NAME)_stripped.$(SHAREDLIBSUFFIX) + $(QUIET)ln -sfn $(LIBPREFIX)$(MODULE_NAME)$(DEBUGSYMBOLS_TAG).$(SHAREDLIBSUFFIXVER) $(LIBPREFIX)$(MODULE_NAME)$(DEBUGSYMBOLS_TAG).$(SHAREDLIBSUFFIX) endif endif