]> xenbits.xensource.com Git - libvirt.git/commit
Don't try to enable stack protector on Win32
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 5 Apr 2011 15:00:58 +0000 (16:00 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 5 Apr 2011 16:43:40 +0000 (17:43 +0100)
commitdba5ba62bbf36c95879c4dea560721f2e970fbc5
tree8b20435f150335e07404abaef65a9fd7abc249fc
parent5b099250e34194bb86471e49ed46963ee6bdb0ba
Don't try to enable stack protector on Win32

The GCC Win32 compiler will claim to support -fstack-protector,
but if it actually gets triggered by a suitable code pattern,
linking will fail. Other non-Linux OS likely suffer the same
way with gcc.

* m4/virt-compile-warnings.m4: Only use stack protector when
  the build target is Linux.
m4/virt-compile-warnings.m4