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:
Martin Kletzander 2016-02-09 12:33:29 +01:00
parent 99a6f30db0
commit d498a89950

View File

@ -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