mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
Fix '-pie' build with clang
Commit 97e70a593589e8f0432a748b4b93c3cdc18b9e5a 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
|
||||
*)
|
||||
gl_COMPILER_OPTION_IF([-fPIE -DPIE -pie], [
|
||||
PIE_CFLAGS="-fPIE -DPIE -pie"
|
||||
PIE_CFLAGS="-fPIE -DPIE"
|
||||
PIE_LDFLAGS="-pie"
|
||||
])
|
||||
esac
|
||||
|
Loading…
x
Reference in New Issue
Block a user