[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [Xen-devel] [PATCH] minios: make mini-os_app.o depend on included xen libraries
On 27/09/16 17:56, Wei Liu wrote: > On Tue, Sep 27, 2016 at 02:06:24PM +0200, Juergen Gross wrote: >> When building Mini-OS with an app which is using xen libraries like >> libxenguest.a let mini-os_app.o depend on the library binaries as it >> is statically linked with them. >> >> While at it add "-T" before app.lds for linking mini-os_app.o to avoid >> a linker warning. >> >> Signed-off-by: Juergen Gross <jgross@xxxxxxxx> >> --- >> Makefile | 11 +++++++++-- >> 1 file changed, 9 insertions(+), 2 deletions(-) >> >> diff --git a/Makefile b/Makefile >> index 81b936f..1d2324c 100644 >> --- a/Makefile >> +++ b/Makefile >> @@ -125,11 +125,18 @@ OBJS := $(filter-out $(OBJ_DIR)/lwip%.o $(LWO), >> $(OBJS)) >> ifeq ($(libc),y) >> ifeq ($(CONFIG_XC),y) >> APP_LDLIBS += -L$(XEN_ROOT)/stubdom/libs-$(MINIOS_TARGET_ARCH)/toollog >> -whole-archive -lxentoollog -no-whole-archive >> +LIBS += >> $(XEN_ROOT)/stubdom/libs-$(MINIOS_TARGET_ARCH)/toollog/libxentoollog.a > > I don't follow. Why is the original APP_LDLIBS not enough? This just adds the parameters for ld to use the libs. > The new dependency doesn't seem to generate any new rules. What do I > miss? You snipped: +$(OBJ_DIR)/$(TARGET)_app.o: $(APP_OBJS) app.lds $(LIBS) which adds a dependency on the libs. Now mini-os_app.o will be relinked if any of the libs changed. That was not the case before. I realized that a modification of libxc wouldn't make it into pvgrub if I didn't do a "make clean" and pvgrub was built before. Juergen _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/cgi-bin/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |