diff --git a/libs/libc/Makefile b/libs/libc/Makefile index 17d628b4691..f98669fa9c0 100644 --- a/libs/libc/Makefile +++ b/libs/libc/Makefile @@ -127,18 +127,18 @@ all: $(BIN) .PHONY: clean distclean $(AOBJS): $(BINDIR)$(DELIM)$(DELIM)%$(OBJEXT): %.S - $(call ASSEMBLE, $<, $@) + $(call ASSEMBLE, $(realpath $<), $@) # REVISIT: Backslash causes problems in $(COBJS) target $(COBJS): $(BINDIR)$(DELIM)$(DELIM)%$(OBJEXT): %.c - $(call COMPILE, $<, $@) + $(call COMPILE, $(realpath $<), $@) # C library for the flat build and # the user phase of the two-pass kernel build $(BIN): $(OBJS) - $(call ARCHIVE, $@, $(OBJS)) + $(call ARCHIVE, $@, $(realpath $(OBJS))) ifeq ($(CONFIG_LIBC_ZONEINFO_ROMFS),y) $(Q) $(MAKE) -C zoneinfo all BIN=$(BIN) endif diff --git a/mm/Makefile b/mm/Makefile index 5234948cd72..f9ddf0732ae 100644 --- a/mm/Makefile +++ b/mm/Makefile @@ -52,18 +52,18 @@ all: $(BIN) .PHONY: context depend clean distclean $(AOBJS): $(BINDIR)$(DELIM)$(DELIM)%$(OBJEXT): %.S - $(call ASSEMBLE, $<, $@) + $(call ASSEMBLE, $(realpath $<), $@) # REVISIT: Backslash causes problems in $(COBJS) target $(COBJS): $(BINDIR)$(DELIM)$(DELIM)%$(OBJEXT): %.c - $(call COMPILE, $<, $@) + $(call COMPILE, $(realpath $<), $@) # Memory manager for the flat build and # the user phase of the two-pass kernel build $(BIN): $(OBJS) - $(call ARCHIVE, $@, $(OBJS)) + $(call ARCHIVE, $@, $(realpath $(OBJS))) # Memory manager for the kernel phase of the two-pass kernel build