提交 f544a488 编写于 作者: P Paolo Bonzini 提交者: Edgar E. Iglesias

configure: move common libraries to config-host.mak

Move -lm to the end of the line, so that it can be picked up as a
dependency by pixman in the static build case.
Reviewed-by: NPeter Maydell <peter.maydell@redhat.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: NEdgar E. Iglesias <edgar.iglesias@gmail.com>
上级 727e5283
...@@ -31,10 +31,6 @@ PROGS+=$(QEMU_PROGW) ...@@ -31,10 +31,6 @@ PROGS+=$(QEMU_PROGW)
endif endif
STPFILES= STPFILES=
ifndef CONFIG_HAIKU
LIBS+=-lm
endif
config-target.h: config-target.h-timestamp config-target.h: config-target.h-timestamp
config-target.h-timestamp: config-target.mak config-target.h-timestamp: config-target.mak
...@@ -119,7 +115,7 @@ obj-$(CONFIG_HAVE_GET_MEMORY_MAPPING) += memory_mapping.o ...@@ -119,7 +115,7 @@ obj-$(CONFIG_HAVE_GET_MEMORY_MAPPING) += memory_mapping.o
obj-$(CONFIG_HAVE_CORE_DUMP) += dump.o obj-$(CONFIG_HAVE_CORE_DUMP) += dump.o
obj-$(CONFIG_NO_GET_MEMORY_MAPPING) += memory_mapping-stub.o obj-$(CONFIG_NO_GET_MEMORY_MAPPING) += memory_mapping-stub.o
obj-$(CONFIG_NO_CORE_DUMP) += dump-stub.o obj-$(CONFIG_NO_CORE_DUMP) += dump-stub.o
LIBS+=-lz LIBS+=$(libs_softmmu)
# xen support # xen support
obj-$(CONFIG_XEN) += xen-all.o xen-mapcache.o obj-$(CONFIG_XEN) += xen-all.o xen-mapcache.o
...@@ -149,6 +145,10 @@ include $(SRC_PATH)/Makefile.objs ...@@ -149,6 +145,10 @@ include $(SRC_PATH)/Makefile.objs
all-obj-y = $(obj-y) all-obj-y = $(obj-y)
all-obj-y += $(addprefix ../, $(common-obj-y)) all-obj-y += $(addprefix ../, $(common-obj-y))
ifndef CONFIG_HAIKU
LIBS+=-lm
endif
ifdef QEMU_PROGW ifdef QEMU_PROGW
# The linker builds a windows executable. Make also a console executable. # The linker builds a windows executable. Make also a console executable.
$(QEMU_PROGW): $(all-obj-y) ../libqemuutil.a ../libqemustub.a $(QEMU_PROGW): $(all-obj-y) ../libqemuutil.a ../libqemustub.a
......
...@@ -1467,6 +1467,7 @@ EOF ...@@ -1467,6 +1467,7 @@ EOF
"Make sure to have the zlib libs and headers installed." "Make sure to have the zlib libs and headers installed."
fi fi
fi fi
libs_softmmu="$libs_softmmu -lz"
########################################## ##########################################
# libseccomp check # libseccomp check
...@@ -3607,6 +3608,7 @@ echo "qemu_helperdir=$libexecdir" >> $config_host_mak ...@@ -3607,6 +3608,7 @@ echo "qemu_helperdir=$libexecdir" >> $config_host_mak
echo "extra_cflags=$EXTRA_CFLAGS" >> $config_host_mak echo "extra_cflags=$EXTRA_CFLAGS" >> $config_host_mak
echo "extra_ldflags=$EXTRA_LDFLAGS" >> $config_host_mak echo "extra_ldflags=$EXTRA_LDFLAGS" >> $config_host_mak
echo "qemu_localedir=$qemu_localedir" >> $config_host_mak echo "qemu_localedir=$qemu_localedir" >> $config_host_mak
echo "libs_softmmu=$libs_softmmu" >> $config_host_mak
echo "ARCH=$ARCH" >> $config_host_mak echo "ARCH=$ARCH" >> $config_host_mak
...@@ -4331,7 +4333,7 @@ if test "$target_bigendian" = "yes" ; then ...@@ -4331,7 +4333,7 @@ if test "$target_bigendian" = "yes" ; then
fi fi
if test "$target_softmmu" = "yes" ; then if test "$target_softmmu" = "yes" ; then
echo "CONFIG_SOFTMMU=y" >> $config_target_mak echo "CONFIG_SOFTMMU=y" >> $config_target_mak
echo "LIBS+=$libs_softmmu $target_libs_softmmu" >> $config_target_mak echo "LIBS+=$target_libs_softmmu" >> $config_target_mak
case "$target_arch2" in case "$target_arch2" in
i386|x86_64) i386|x86_64)
echo "CONFIG_HAVE_CORE_DUMP=y" >> $config_target_mak echo "CONFIG_HAVE_CORE_DUMP=y" >> $config_target_mak
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册