mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 23:25:24 +00:00
6e5b5bbc0a
Matthias noted that the line: virt_aa_helper_LDFLAGS = $(WARN_CFLAGS) looks inconsistent, so I did an audit. Currently, the set of compiler warning flags passed to gcc as $CC are equally permitted as the set of linker flags passed to gcc as $LD, so there was no problem with that usage. But if we ever get in a situation where $CC and $LD treat particular flags differently, using the right variable form will make it easier. In the process, I spotted a couple of typos that were omitting useful flags, as well as specifying a -l under the wrong variable. * acinclude.m4 (LIBVIRT_COMPILE_WARNINGS): Define WARN_LDFLAGS as an alias for WARN_CFLAGS. * tools/Makefile.am (virsh_LDFLAGS): Use more canonical spelling. * proxy/Makefile.am (libvirt_proxy_LDFLAGS): Likewise. Move library... (libvirt_proxy_LDADD): ...here. * src/Makefile.am (virt_aa_helper_LDFLAGS): Use more canonical spelling of WARN_LDFLAGS. (libvirt_parthelper_LDFLAGS, libvirt_lxc_LDFLAGS): Likewise. Use correct spelling of COVERAGE_LDFLAGS. Reported by Matthias Bolte.
42 lines
1.6 KiB
Makefile
42 lines
1.6 KiB
Makefile
## Process this file with automake to produce Makefile.in
|
|
|
|
if WITH_PROXY
|
|
INCLUDES = -I$(top_srcdir)/gnulib/lib -I../gnulib/lib \
|
|
-I$(top_builddir)/include -I@top_srcdir@/include \
|
|
-I@top_srcdir@/proxy -I@top_srcdir@/src \
|
|
-I@top_srcdir@/src/util \
|
|
-I@top_srcdir@/src/conf \
|
|
-I@top_srcdir@/src/xen \
|
|
$(LIBXML_CFLAGS) \
|
|
-DPROXY -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
|
|
-DGETTEXT_PACKAGE=\"$(PACKAGE)\" $(WARN_CFLAGS) $(XEN_CFLAGS)
|
|
|
|
libexec_PROGRAMS = libvirt_proxy
|
|
|
|
libvirt_proxy_SOURCES = libvirt_proxy.c \
|
|
@top_srcdir@/src/util/buf.c \
|
|
@top_srcdir@/src/util/hash.c \
|
|
@top_srcdir@/src/util/logging.c \
|
|
@top_srcdir@/src/util/memory.c \
|
|
@top_srcdir@/src/util/network.c \
|
|
@top_srcdir@/src/util/threads.c \
|
|
@top_srcdir@/src/util/util.c \
|
|
@top_srcdir@/src/util/uuid.c \
|
|
@top_srcdir@/src/util/virterror.c \
|
|
@top_srcdir@/src/conf/capabilities.c \
|
|
@top_srcdir@/src/conf/storage_encryption_conf.c \
|
|
@top_srcdir@/src/conf/domain_conf.c \
|
|
@top_srcdir@/src/conf/cpu_conf.c \
|
|
@top_srcdir@/src/conf/nwfilter_params.c \
|
|
@top_srcdir@/src/xen/xend_internal.c \
|
|
@top_srcdir@/src/xen/xen_hypervisor.c \
|
|
@top_srcdir@/src/xen/sexpr.c \
|
|
@top_srcdir@/src/xen/xs_internal.c
|
|
libvirt_proxy_LDFLAGS = $(WARN_LDFLAGS)
|
|
libvirt_proxy_DEPENDENCIES =
|
|
libvirt_proxy_LDADD = ../gnulib/lib/libgnu.la $(XEN_LIBS) $(LIB_PTHREAD)
|
|
|
|
install-exec-hook:
|
|
chmod u+s $(DESTDIR)$(libexecdir)/libvirt_proxy
|
|
endif
|