[Asterisk-code-review] Remove res/ari/* content during 'make clean'. (asterisk[13])

Joshua Colp asteriskteam at digium.com
Mon Jan 18 19:27:44 CST 2016


Joshua Colp has submitted this change and it was merged.

Change subject: Remove res/ari/* content during 'make clean'.
......................................................................


Remove res/ari/* content during 'make clean'.

'make clean' and 'make distclean' can leave behind .o files in the
res/ari/ directory. One observed consequence of this is that running
Asterisk with MALLOC_DEBUG can cause Asterisk to crash immediately on
startup sometimes.

By ensuring that we are making a clean build, we can be sure that stale
files are not being included in the build and causing problems when
build options should have caused files to be re-built.

ASTERISK-25683 #close
Reported by yaron nahum

Change-Id: I1f48baa904d2468eddeefb42ee68a56af7adc7b7
---
M res/Makefile
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Richard Mudgett: Looks good to me, but someone else must approve
  Anonymous Coward #1000019: Verified
  Ashley Sanders: Looks good to me, approved
  Corey Farrell: Looks good to me, but someone else must approve



diff --git a/res/Makefile b/res/Makefile
index dbab999..d2a2ad9 100644
--- a/res/Makefile
+++ b/res/Makefile
@@ -81,6 +81,7 @@
 	rm -f stasis/*.[oi] stasis/*.gcda stasis/*.gcno
 	rm -f parking/*.[oi] parking/*.gcda parking/*.gcno
 	rm -f stasis_recording/*.[oi] stasis_recording/*.gcda stasis_recording/*.gcno
+	rm -f res/ari/*.[oi] res/ari/*.gcda res/ari/*.gcno
 
 $(if $(filter res_parking,$(EMBEDDED_MODS)),modules.link,res_parking.so): $(subst .c,.o,$(wildcard parking/*.c))
 $(subst .c,.o,$(wildcard parking/*.c)): _ASTCFLAGS+=$(call MOD_ASTCFLAGS,res_parking)

-- 
To view, visit https://gerrit.asterisk.org/2010
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I1f48baa904d2468eddeefb42ee68a56af7adc7b7
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Mark Michelson <mmichelson at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Ashley Sanders <asanders at digium.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>



More information about the asterisk-code-review mailing list