]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Don't duplicate compiler warning flags when linking
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 13 May 2013 11:50:22 +0000 (12:50 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 14 May 2013 14:02:37 +0000 (15:02 +0100)
Automake already passes all CFLAGS to the linker too, so it
is not necessary to set WARN_LDFLAGS in addition to the
WARN_CFLAGS variable.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
daemon/Makefile.am
m4/virt-compile-warnings.m4
src/Makefile.am
tools/Makefile.am

index 64126e55e0de79dfe3b4654af290c41371d6072c..f48dc85121a845e0e6006775acb8f7fdeb5b9146 100644 (file)
@@ -111,7 +111,6 @@ libvirtd_CFLAGS = \
        -DQEMUD_PID_FILE="\"$(QEMUD_PID_FILE)\""
 
 libvirtd_LDFLAGS =                                     \
-       $(WARN_LDFLAGS)                                 \
        $(PIE_LDFLAGS)                                  \
        $(RELRO_LDFLAGS)                                \
        $(COVERAGE_LDFLAGS)
index 59091a6a526d9a9f68b70b3cf805e4dc2e045f86..dc0e7d7e8c2c08ba8219782134b4ca65c2eb1adb 100644 (file)
@@ -224,10 +224,6 @@ AC_DEFUN([LIBVIRT_COMPILE_WARNINGS],[
       gl_WARN_ADD([-Werror])
     fi
 
-    WARN_LDFLAGS=$WARN_CFLAGS
-    AC_SUBST([WARN_CFLAGS])
-    AC_SUBST([WARN_LDFLAGS])
-
     dnl Needed to keep compile quiet on python 2.4
     save_WARN_CFLAGS=$WARN_CFLAGS
     WARN_CFLAGS=
index 9b9f9f2d284d872501f876b70dd65b693ba9ed78..6c626ace2c154a7a1ffe9e0c0ae6fb3b605f746a 100644 (file)
@@ -1979,7 +1979,6 @@ if WITH_LIBVIRTD
 libexec_PROGRAMS += libvirt_iohelper
 libvirt_iohelper_SOURCES = $(UTIL_IO_HELPER_SOURCES)
 libvirt_iohelper_LDFLAGS = \
-               $(WARN_LDFLAGS) \
                $(AM_LDFLAGS) \
                $(PIE_LDFLAGS) \
                $(RELRO_LDFLAGS) \
@@ -2003,7 +2002,6 @@ libexec_PROGRAMS += libvirt_parthelper
 
 libvirt_parthelper_SOURCES = $(STORAGE_HELPER_DISK_SOURCES)
 libvirt_parthelper_LDFLAGS = \
-               $(WARN_LDFLAGS) \
                $(AM_LDFLAGS) \
                $(PIE_LDFLAGS) \
                $(RELRO_LDFLAGS) \
@@ -2036,7 +2034,6 @@ libvirt_sanlock_helper_CFLAGS = \
                $(PIE_CFLAGS) \
                $(NULL)
 libvirt_sanlock_helper_LDFLAGS = \
-               $(WARN_LDFLAGS) \
                $(AM_LDFLAGS) \
                $(PIE_LDFLAGS) \
                $(RELRO_LDFLAGS) \
@@ -2053,7 +2050,6 @@ libvirt_lxc_SOURCES =                                             \
                $(NODE_INFO_SOURCES)                            \
                $(DATATYPES_SOURCES)
 libvirt_lxc_LDFLAGS = \
-               $(WARN_LDFLAGS) \
                $(AM_LDFLAGS) \
                $(PIE_LDFLAGS) \
                $(RELRO_LDFLAGS) \
@@ -2098,7 +2094,6 @@ libexec_PROGRAMS += virt-aa-helper
 virt_aa_helper_SOURCES = $(SECURITY_DRIVER_APPARMOR_HELPER_SOURCES)
 
 virt_aa_helper_LDFLAGS = \
-               $(WARN_LDFLAGS) \
                $(AM_LDFLAGS) \
                $(PIE_LDFLAGS) \
                $(RELRO_LDFLAGS) \
index 07c9f43503b0dd207d7e905126c5bbd90390e7ca..4136b848dc899613e3169d68d46372f21896d896 100644 (file)
@@ -98,7 +98,6 @@ virt_host_validate_SOURCES = \
                $(NULL)
 
 virt_host_validate_LDFLAGS = \
-               $(WARN_LDFLAGS) \
                $(PIE_LDFLAGS) \
                $(RELRO_LDFLAGS) \
                $(COVERAGE_LDFLAGS) \
@@ -131,10 +130,9 @@ virsh_SOURCES =                                                    \
                virsh-volume.c virsh-volume.h                   \
                $(NULL)
 
-virsh_LDFLAGS = $(WARN_LDFLAGS) $(COVERAGE_LDFLAGS)
+virsh_LDFLAGS = $(COVERAGE_LDFLAGS)
 virsh_LDADD =                                                  \
                $(STATIC_BINARIES)                              \
-               $(WARN_LDFLAGS)                                 \
                $(PIE_LDFLAGS)                                  \
                $(RELRO_LDFLAGS) \
                ../src/libvirt.la                               \