mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
842432390b
commit
c03eff7717
@ -21,10 +21,15 @@ dnl
|
|||||||
AC_DEFUN([LIBVIRT_COMPILE_PIE],[
|
AC_DEFUN([LIBVIRT_COMPILE_PIE],[
|
||||||
PIE_CFLAGS=
|
PIE_CFLAGS=
|
||||||
PIE_LDFLAGS=
|
PIE_LDFLAGS=
|
||||||
gl_COMPILER_OPTION_IF([-fPIE -DPIE], [
|
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_CFLAGS="-fPIE -DPIE"
|
||||||
PIE_LDFLAGS="-pie"
|
PIE_LDFLAGS="-pie"
|
||||||
])
|
])
|
||||||
|
esac
|
||||||
AC_SUBST([PIE_CFLAGS])
|
AC_SUBST([PIE_CFLAGS])
|
||||||
AC_SUBST([PIE_LDFLAGS])
|
AC_SUBST([PIE_LDFLAGS])
|
||||||
])
|
])
|
||||||
|
Loading…
Reference in New Issue
Block a user