Wireshark-commits: [Wireshark-commits] master-1.10 8a3d7e2: Only add flags to CFLAGS_FOR_BUILD if $

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Sun, 12 Apr 2015 04:14:02 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=8a3d7e237f691727ccadd6c50577951f579e3a2f
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-1.10
Repository: wireshark

Commits:

8a3d7e2 by Guy Harris (guy@xxxxxxxxxxxx):

    Only add flags to CFLAGS_FOR_BUILD if $CC and $CC_FOR_BUILD are the same.
    
    Otherwise, just because a flag is appropriate for $CC, that doesn't
    necessarily mean it's appropriate for $CFLAGS_FOR_BUILD.
    
    (We don't use CFLAGS_FOR_BUILD for many things, so it's probably not
    worth making a lot of effort to throw all the warning flags into it if
    we're cross-compiling; we *do* throw them in for native compilation,
    which is what most developers use and test with, so that should be
    sufficient to let the warnings catch problems with the build tools we're
    building.)
    
    Change-Id: I317e5b34b046aa16d793b85ea67f105f6d1faca3
    Reviewed-on: https://code.wireshark.org/review/8028
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  e223b05   Reset the captured-packet count when we start or restart a capture.
    adds  8a3d7e2   Only add flags to CFLAGS_FOR_BUILD if $CC and $CC_FOR_BUILD are the same.


Summary of changes:
 acinclude.m4 |   28 ++++++++++++++++++----------
 configure.ac |   10 +++++++++-
 2 files changed, 27 insertions(+), 11 deletions(-)