mirror of https://github.com/xqemu/xqemu.git
Fold TARGET_GPROF handling 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:
parent
10a072a2bd
commit
d02c1db3d8
|
@ -138,12 +138,6 @@ ifdef CONFIG_LINUX_USER
|
||||||
VPATH+=:$(SRC_PATH)/linux-user:$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
|
VPATH+=:$(SRC_PATH)/linux-user:$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
|
||||||
QEMU_CFLAGS+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
|
QEMU_CFLAGS+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR)
|
||||||
|
|
||||||
# profiling code
|
|
||||||
ifdef TARGET_GPROF
|
|
||||||
LDFLAGS+=-p
|
|
||||||
QEMU_CFLAGS+=-p
|
|
||||||
endif
|
|
||||||
|
|
||||||
obj-y = main.o syscall.o strace.o mmap.o signal.o path.o thunk.o \
|
obj-y = main.o syscall.o strace.o mmap.o signal.o path.o thunk.o \
|
||||||
elfload.o linuxload.o uaccess.o envlist.o gdbstub.o gdbstub-xml.o \
|
elfload.o linuxload.o uaccess.o envlist.o gdbstub.o gdbstub-xml.o \
|
||||||
ioport-user.o
|
ioport-user.o
|
||||||
|
@ -366,7 +360,6 @@ endif
|
||||||
|
|
||||||
# profiling code
|
# profiling code
|
||||||
ifdef TARGET_GPROF
|
ifdef TARGET_GPROF
|
||||||
LDFLAGS+=-p
|
|
||||||
main.o vl.o: QEMU_CFLAGS+=-p
|
main.o vl.o: QEMU_CFLAGS+=-p
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -1595,9 +1595,6 @@ if test "$solaris" = "yes" ; then
|
||||||
echo "CONFIG_NEEDS_LIBSUNMATH=y" >> $config_host_mak
|
echo "CONFIG_NEEDS_LIBSUNMATH=y" >> $config_host_mak
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if test "$gprof" = "yes" ; then
|
|
||||||
echo "TARGET_GPROF=yes" >> $config_host_mak
|
|
||||||
fi
|
|
||||||
if test "$static" = "yes" ; then
|
if test "$static" = "yes" ; then
|
||||||
echo "CONFIG_STATIC=y" >> $config_host_mak
|
echo "CONFIG_STATIC=y" >> $config_host_mak
|
||||||
LDFLAGS="-static $LDFLAGS"
|
LDFLAGS="-static $LDFLAGS"
|
||||||
|
@ -2083,6 +2080,17 @@ ia64)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if test "$gprof" = "yes" ; then
|
||||||
|
echo "TARGET_GPROF=yes" >> $config_mak
|
||||||
|
if test "$target_linux_user" = "yes" ; then
|
||||||
|
cflags="-p $cflags"
|
||||||
|
ldflags="-p $ldflags"
|
||||||
|
fi
|
||||||
|
if test "$target_softmmu" = "yes" ; then
|
||||||
|
ldflags="-p $ldflags"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
linker_script="-Wl,-T../config-host.ld -Wl,-T,\$(SRC_PATH)/\$(ARCH).ld"
|
linker_script="-Wl,-T../config-host.ld -Wl,-T,\$(SRC_PATH)/\$(ARCH).ld"
|
||||||
if test "$target_linux_user" = "yes" -o "$target_bsd_user" = "yes" ; then
|
if test "$target_linux_user" = "yes" -o "$target_bsd_user" = "yes" ; then
|
||||||
case "$ARCH" in
|
case "$ARCH" in
|
||||||
|
|
Loading…
Reference in New Issue