diff --git a/mk/prefix.mk b/mk/prefix.mk index 3384110..c71175e 100644 --- a/mk/prefix.mk +++ b/mk/prefix.mk @@ -1,7 +1,8 @@ PREFIX=$(ROOT)/prefix -PREFIX_FREESTANDING_PATH=$(PREFIX)/binutils-install/bin:$(PREFIX)/gcc-freestanding-install/bin -PREFIX_PATH=$(PREFIX)/binutils-install/bin:$(PREFIX)/gcc-install/bin +PREFIX_BINUTILS_PATH=$(PREFIX)/binutils-install/bin +PREFIX_FREESTANDING_PATH=$(PREFIX_BINUTILS_PATH):$(PREFIX)/gcc-freestanding-install/bin +PREFIX_PATH=$(PREFIX_BINUTILS_PATH):$(PREFIX)/gcc-install/bin prefix: $(PREFIX)/gcc-install touch "$@" @@ -42,6 +43,7 @@ $(PREFIX)/gcc-freestanding-install: $(PREFIX)/gcc rm -rf "$<-freestanding-build" "$@" mkdir -p "$<-freestanding-build" "$@" cd "$<-freestanding-build" && \ + export PATH="$(PREFIX_BINUTILS_PATH):$$PATH" && \ "$