diff options
author | Alon Levy <alevy@redhat.com> | 2012-06-06 16:03:53 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2012-06-06 17:32:02 +0300 |
commit | d905a1f24c93e99812388f6def42f8285c2acc6c (patch) | |
tree | 83f7e416b07786d6cabcb57c85bd5aadf63a848c /GNUmakefile | |
parent | 70c706e0b594e5dc38230b970e2d438cf526eed6 (diff) | |
download | spice-d905a1f24c93e99812388f6def42f8285c2acc6c.tar.gz spice-d905a1f24c93e99812388f6def42f8285c2acc6c.tar.xz spice-d905a1f24c93e99812388f6def42f8285c2acc6c.zip |
m4/spice-compile-warnings: Squelch _FORTIFY_SOURCE when needed to avoid glibc #warnings.
Fix copied from libvirt, commit by Eric Blake.
glibc 2.15 (on Fedora 17) coupled with explicit disabling of
optimization during development dies a painful death:
/usr/include/features.h:314:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
Work around this by only conditionally defining _FORTIFY_SOURCE,
in the case where glibc can actually use it. The trick is using
AH_VERBATIM instead of AC_DEFINE.
Diffstat (limited to 'GNUmakefile')
0 files changed, 0 insertions, 0 deletions