Fix compiler error when using ./configure --enable-dev-mode --enable-coverage
authorCorey Farrell <git@cfware.com>
Wed, 12 Nov 2014 13:47:30 +0000 (13:47 +0000)
committerCorey Farrell <git@cfware.com>
Wed, 12 Nov 2014 13:47:30 +0000 (13:47 +0000)
commit9f89b83269e613cf80501e9d7c4387c2acc4fd34
tree15b5efc66bec9a718afa41407e453c12f63ea5d6
parent21c41e4542290747bf90d8086f60c39030367ff9
Fix compiler error when using ./configure --enable-dev-mode --enable-coverage

When DONT_OPTIMIZE is enabled with dev-mode, it causes a shadow compilation
to be done with output to /dev/null.  This can cause errors with coverage
when GCC attempts to write to /dev/null.gcno.  This change disables
coverage for the shadow compilation.

ASTERISK-24502 #close
Reported by: Corey Farrell
Review: https://reviewboard.asterisk.org/r/4151/
........

Merged revisions 427682 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 427683 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 427684 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@427685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Makefile.rules