]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix '-pie' build with clang
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 9 Feb 2016 11:33:29 +0000 (12:33 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 9 Feb 2016 12:29:53 +0000 (13:29 +0100)
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>
m4/virt-compile-pie.m4

index c0fb346ff78424359b5d888d478bacc4fde1b24e..a2df38ea7272a1230ddd7853bfb89c2864e23777 100644 (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