diff options
Diffstat (limited to 'Makefile.target')
-rw-r--r-- | Makefile.target | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/Makefile.target b/Makefile.target index f682560518..30b159dc1b 100644 --- a/Makefile.target +++ b/Makefile.target @@ -340,14 +340,13 @@ ifeq ($(TARGET_ARCH), m68k) OBJS+= m68k-sim.o m68k-semi.o endif -OBJS+= libqemu.a - # Note: this is a workaround. The real fix is to avoid compiling # cpu_signal_handler() in cpu-exec.c. signal.o: CFLAGS += $(HELPER_CFLAGS) -$(QEMU_PROG): $(OBJS) ../libqemu_user.a - $(LINK) +$(QEMU_PROG): ARLIBS=../libqemu_user.a libqemu.a +$(QEMU_PROG): $(OBJS) ../libqemu_user.a libqemu.a + $(call LINK,$(OBJS)) ifeq ($(ARCH),alpha) # Mark as 32 bit binary, i. e. it will be mapped into the low 31 bit of # the address space (31 bit so sign extending doesn't matter) @@ -372,14 +371,13 @@ LIBS+=-lmx OBJS= main.o commpage.o machload.o mmap.o signal.o syscall.o thunk.o \ gdbstub.o gdbstub-xml.o -OBJS+= libqemu.a - # Note: this is a workaround. The real fix is to avoid compiling # cpu_signal_handler() in cpu-exec.c. signal.o: CFLAGS += $(HELPER_CFLAGS) -$(QEMU_PROG): $(OBJS) - $(LINK) +$(QEMU_PROG): ARLIBS=libqemu.a +$(QEMU_PROG): $(OBJS) libqemu.a + $(call LINK,$(OBJS)) endif #CONFIG_DARWIN_USER @@ -473,14 +471,13 @@ OBJS= main.o bsdload.o elfload.o mmap.o path.o signal.o strace.o syscall.o \ gdbstub.o gdbstub-xml.o OBJS+= uaccess.o -OBJS+= libqemu.a - # Note: this is a workaround. The real fix is to avoid compiling # cpu_signal_handler() in cpu-exec.c. signal.o: CFLAGS += $(HELPER_CFLAGS) -$(QEMU_PROG): $(OBJS) ../libqemu_user.a - $(LINK) +$(QEMU_PROG): ARLIBS=libqemu.a ../libqemu_user.a +$(QEMU_PROG): $(OBJS) libqemu.a ../libqemu_user.a + $(call LINK,$(OBJS)) endif #CONFIG_BSD_USER @@ -716,9 +713,9 @@ endif vl.o: qemu-options.h $(QEMU_PROG): LIBS += $(SDL_LIBS) $(COCOA_LIBS) $(CURSES_LIBS) $(BRLAPI_LIBS) $(VDE_LIBS) - +$(QEMU_PROG): ARLIBS=../libqemu_common.a libqemu.a $(QEMU_PROG): $(OBJS) ../libqemu_common.a libqemu.a - $(LINK) + $(call LINK,$(OBJS)) endif # !CONFIG_USER_ONLY |