mirror of https://github.com/xemu-project/xemu.git
win32: fix compilation again
While commit c02817e5bf
fixed compilation
without an installed libtool, moving the dependencies to rules.mak does
not work because the version-*-y variables are not defined yet. Building
in a clean tree thus fails.
Revert the commit and remove the dummy /bin/false assignment to LIBTOOL.
This makes the build work, at the price of slightly worse errors when
there are Makefile bugs.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1367425815-15083-1-git-send-email-pbonzini@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
cc9936a32f
commit
fba90ac1d6
1
Makefile
1
Makefile
|
@ -172,6 +172,7 @@ version.lo: $(SRC_PATH)/version.rc config-host.h
|
||||||
version-obj-$(CONFIG_WIN32) += version.o
|
version-obj-$(CONFIG_WIN32) += version.o
|
||||||
version-lobj-$(CONFIG_WIN32) += version.lo
|
version-lobj-$(CONFIG_WIN32) += version.lo
|
||||||
|
|
||||||
|
Makefile: $(version-obj-y) $(version-lobj-y)
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# Build libraries
|
# Build libraries
|
||||||
|
|
|
@ -22,15 +22,11 @@ QEMU_INCLUDES += -I$(<D) -I$(@D)
|
||||||
%.o: %.rc
|
%.o: %.rc
|
||||||
$(call quiet-command,$(WINDRES) -I. -o $@ $<," RC $(TARGET_DIR)$@")
|
$(call quiet-command,$(WINDRES) -I. -o $@ $<," RC $(TARGET_DIR)$@")
|
||||||
|
|
||||||
Makefile: $(version-obj-y)
|
|
||||||
|
|
||||||
ifeq ($(LIBTOOL),)
|
ifeq ($(LIBTOOL),)
|
||||||
LIBTOOL = /bin/false
|
|
||||||
LINK = $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ \
|
LINK = $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ \
|
||||||
$(sort $(filter %.o, $1)) $(filter-out %.o, $1) $(version-obj-y) \
|
$(sort $(filter %.o, $1)) $(filter-out %.o, $1) $(version-obj-y) \
|
||||||
$(LIBS)," LINK $(TARGET_DIR)$@")
|
$(LIBS)," LINK $(TARGET_DIR)$@")
|
||||||
else
|
else
|
||||||
Makefile: $(version-lobj-y)
|
|
||||||
LIBTOOL += $(if $(V),,--quiet)
|
LIBTOOL += $(if $(V),,--quiet)
|
||||||
%.lo: %.c
|
%.lo: %.c
|
||||||
$(call quiet-command,$(LIBTOOL) --mode=compile --tag=CC $(CC) $(QEMU_INCLUDES) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," lt CC $@")
|
$(call quiet-command,$(LIBTOOL) --mode=compile --tag=CC $(CC) $(QEMU_INCLUDES) $(QEMU_CFLAGS) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<," lt CC $@")
|
||||||
|
@ -74,7 +70,7 @@ quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1))
|
||||||
cc-option = $(if $(shell $(CC) $1 $2 -S -o /dev/null -xc /dev/null \
|
cc-option = $(if $(shell $(CC) $1 $2 -S -o /dev/null -xc /dev/null \
|
||||||
>/dev/null 2>&1 && echo OK), $2, $3)
|
>/dev/null 2>&1 && echo OK), $2, $3)
|
||||||
|
|
||||||
VPATH_SUFFIXES = %.c %.h %.S %.m %.mak %.texi %.sh
|
VPATH_SUFFIXES = %.c %.h %.S %.m %.mak %.texi %.sh %.rc
|
||||||
set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES),$(eval vpath $(PATTERN) $1)))
|
set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES),$(eval vpath $(PATTERN) $1)))
|
||||||
|
|
||||||
# find-in-path
|
# find-in-path
|
||||||
|
|
Loading…
Reference in New Issue