Test if we need -lutil in ,/configure

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
This commit is contained in:
Juan Quintela 2009-08-03 14:46:32 +02:00 committed by Anthony Liguori
parent ba679e62f3
commit 6362a53f55
2 changed files with 5 additions and 10 deletions

View File

@ -395,16 +395,6 @@ ifdef CONFIG_SLIRP
QEMU_CFLAGS+=-I$(SRC_PATH)/slirp QEMU_CFLAGS+=-I$(SRC_PATH)/slirp
endif endif
# specific flags are needed for non soft mmu emulator
ifndef CONFIG_DARWIN
ifndef CONFIG_WIN32
ifndef CONFIG_SOLARIS
ifndef CONFIG_AIX
LIBS+=-lutil
endif
endif
endif
endif
ifdef TARGET_GPROF ifdef TARGET_GPROF
vl.o: QEMU_CFLAGS+=-p vl.o: QEMU_CFLAGS+=-p
LDFLAGS+=-p LDFLAGS+=-p

5
configure vendored
View File

@ -1402,6 +1402,11 @@ else
exit 1 exit 1
fi fi
if test "$darwin" != "yes" -a "$mingw32" != "yes" -a "$solaries" != yes -a \
"$aix" != "yes" ; then
libs_softmmu="-lutil $libs_softmmu"
fi
# End of CC checks # End of CC checks
# After here, no more $cc or $ld runs # After here, no more $cc or $ld runs