diff options
author | Bill Meier <wmeier@newsguy.com> | 2012-07-07 22:35:55 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2012-07-07 22:35:55 +0000 |
commit | 88c8b9218d11c7088b4c6a1b88eb839f64b52413 (patch) | |
tree | bbab2eba192d27ac0a317ff713e2c02c7fc2cc63 /epan/dissectors/packet-user_encap.c | |
parent | 9a2dc60d7265cea82873e0f5ab1439bd2ce1c33e (diff) |
Use -D_FORTIFY_SOURCE=2 only if the gc optimization level is greater than 0.
Fixes Bug #7449: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7449
-----
Issue:
Building Wireshark with '-O0 -D_FORTIFY_SOURCE=2 ...' fails
The warning [error] message:
/usr/include/features.h:314:4: error: #warning _FORTIFY_SOURCE requires
compiling with optimization (-O) [-Werror=cpp]`
A bit of research shows that this warning was added to a recent version of
glibc (on at least Fedora).
See: http://sourceware.org/bugzilla/show_bug.cgi?id=13979
The warning message occurs if -D_FORTIFY_SOURCE=... is used and the gcc
'optimization level' == 0 (-O0).
Unfortunately when building with -O0 this warning message:
1. Causes compiles to fail (if -Werror [stop on warning])
2. Causes ./configure to fail with an (incorrect) message
about the pcap header being older than the libpcap version.
svn path=/trunk/; revision=43601
Diffstat (limited to 'epan/dissectors/packet-user_encap.c')
0 files changed, 0 insertions, 0 deletions