[libvirt] [PATCH 1/2] build: allow building with newer glibc-headers and -O0

Eric Blake eblake at redhat.com
Fri Sep 14 17:05:05 UTC 2012


On 09/12/2012 09:42 AM, Christophe Fergeau wrote:
> 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.
> ---
>  m4/virt-compile-warnings.m4 | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)

Which project?  Your git config settings didn't identify which repo this
was for, which was particularly confusing since the same filename exists
in the libvirt.git repo.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120914/2b445fc7/attachment-0001.sig>


More information about the libvir-list mailing list