Patchwork [49/81] remove duplicated TARGET_GPROF code

login
register
mail settings
Submitter Juan Quintela
Date Aug. 3, 2009, 12:46 p.m.
Message ID <00addfad541ded20dc86c831dde82d6520c9e5e3.1249301360.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/30552/
State Superseded
Headers show

Comments

Juan Quintela - Aug. 3, 2009, 12:46 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 Makefile.target |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

Patch

diff --git a/Makefile.target b/Makefile.target
index d13309a..5c3b212 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -379,11 +379,6 @@  ifdef CONFIG_SLIRP
 QEMU_CFLAGS+=-I$(SRC_PATH)/slirp
 endif

-ifdef TARGET_GPROF
-vl.o: QEMU_CFLAGS+=-p
-LDFLAGS+=-p
-endif
-
 ifeq ($(ARCH),ia64)
 LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld
 endif
@@ -391,7 +386,7 @@  endif
 # profiling code
 ifdef TARGET_GPROF
 LDFLAGS+=-p
-main.o: QEMU_CFLAGS+=-p
+main.o vl.o: QEMU_CFLAGS+=-p
 endif

 vl.o: QEMU_CFLAGS+=$(SDL_CFLAGS)