提交 c03eff77 编写于 作者: D Daniel P. Berrange

Don't enable -fPIE on Win32 platforms

On win32, all code is position independent and adding -fPIE
to the compiler flags results in warnings being printed
Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
上级 84243239
......@@ -21,10 +21,15 @@ dnl
AC_DEFUN([LIBVIRT_COMPILE_PIE],[
PIE_CFLAGS=
PIE_LDFLAGS=
case "$host" in
*-*-mingw* | *-*-msvc* | *-*-cygwin* )
;; dnl All code is position independent on Win32 target
*)
gl_COMPILER_OPTION_IF([-fPIE -DPIE], [
PIE_CFLAGS="-fPIE -DPIE"
PIE_LDFLAGS="-pie"
])
esac
AC_SUBST([PIE_CFLAGS])
AC_SUBST([PIE_LDFLAGS])
])
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册