summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2013-10-10 11:17:52 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2013-10-10 11:17:52 +0200
commitceb672bf85f99af9290e0576224072ff6c7533c9 (patch)
treec904626065927eacb4120ea7d6616ca435a5802e /configure.ac
parentf78f1ae61b6af9262b1a8d1ffbf162b323549b83 (diff)
downloadspice-ceb672bf85f99af9290e0576224072ff6c7533c9.tar.gz
spice-ceb672bf85f99af9290e0576224072ff6c7533c9.tar.xz
spice-ceb672bf85f99af9290e0576224072ff6c7533c9.zip
Use hardened linker flags if available
This commit reuse several macros from libvirt to test for support for "-Wl,-z -Wl,relro", "-Wl,-z -Wl,now" and "-Wl,--no-copy-dt-needed-entries", and use them if available.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index fa1ba316..b781d341 100644
--- a/configure.ac
+++ b/configure.ac
@@ -434,6 +434,8 @@ dnl ===========================================================================
dnl check compiler flags
SPICE_COMPILE_WARNINGS
+LIBVIRT_LINKER_RELRO
+LIBVIRT_LINKER_NO_INDIRECT
# use ximage.h for win32 build if it is found (no package for mingw32 atm)
if test $os_win32 == "yes" ; then