diff --git a/m4/virt-compile-pie.m4 b/m4/virt-compile-pie.m4 index cceb495dfdac6f984428dd626f0d48d1244466dc..c0fb346ff78424359b5d888d478bacc4fde1b24e 100644 --- a/m4/virt-compile-pie.m4 +++ b/m4/virt-compile-pie.m4 @@ -25,8 +25,8 @@ AC_DEFUN([LIBVIRT_COMPILE_PIE],[ *-*-mingw* | *-*-msvc* | *-*-cygwin* ) ;; dnl All code is position independent on Win32 target *) - gl_COMPILER_OPTION_IF([-fPIE -DPIE], [ - PIE_CFLAGS="-fPIE -DPIE" + gl_COMPILER_OPTION_IF([-fPIE -DPIE -pie], [ + PIE_CFLAGS="-fPIE -DPIE -pie" PIE_LDFLAGS="-pie" ]) esac