mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
Fix '-pie' build with clang
Commit 97e70a5935
added the option -pie to
CFLAGS and LDFLAGS, however '-pie' is just a linker option. That
wouldn't be a problem. However, clang is checking for that and outputs
an error or unused argument:
error: argument unused during compilation: '-pie'
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
99a6f30db0
commit
d498a89950
@ -26,7 +26,7 @@ AC_DEFUN([LIBVIRT_COMPILE_PIE],[
|
|||||||
;; dnl All code is position independent on Win32 target
|
;; dnl All code is position independent on Win32 target
|
||||||
*)
|
*)
|
||||||
gl_COMPILER_OPTION_IF([-fPIE -DPIE -pie], [
|
gl_COMPILER_OPTION_IF([-fPIE -DPIE -pie], [
|
||||||
PIE_CFLAGS="-fPIE -DPIE -pie"
|
PIE_CFLAGS="-fPIE -DPIE"
|
||||||
PIE_LDFLAGS="-pie"
|
PIE_LDFLAGS="-pie"
|
||||||
])
|
])
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user