From ceb672bf85f99af9290e0576224072ff6c7533c9 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Thu, 10 Oct 2013 11:17:52 +0200 Subject: 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. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.ac') 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 -- cgit