Fix build for relibc
This commit is contained in:
parent
c69f478b45
commit
de4c9db524
11
mk/cross.mk
11
mk/cross.mk
|
@ -50,9 +50,14 @@ $(PREFIX)/gcc-freestanding-install: $(PREFIX)/gcc
|
||||||
touch "$@"
|
touch "$@"
|
||||||
|
|
||||||
$(PREFIX)/relibc-install: $(PREFIX)/binutils-install $(PREFIX)/gcc-freestanding-install
|
$(PREFIX)/relibc-install: $(PREFIX)/binutils-install $(PREFIX)/gcc-freestanding-install
|
||||||
cd relibc && \
|
rm -rf "$(PREFIX)/relibc-build"
|
||||||
make all -j `nproc` && \
|
cp -r relibc "$(PREFIX)/relibc-build"
|
||||||
make DESTDIR="$@" install -j `nproc`
|
cd $(PREFIX)/relibc-build && \
|
||||||
|
export PATH="$(PREFIX)/binutils-install/bin:$(PREFIX)/gcc-freestanding-install/bin:$$PATH" && \
|
||||||
|
rustup target add "$(TARGET)" && \
|
||||||
|
make clean && \
|
||||||
|
make all && \
|
||||||
|
make DESTDIR="$@" install
|
||||||
touch "$@"
|
touch "$@"
|
||||||
|
|
||||||
$(PREFIX)/gcc-install: $(PREFIX)/gcc $(PREFIX)/relibc-install
|
$(PREFIX)/gcc-install: $(PREFIX)/gcc $(PREFIX)/relibc-install
|
||||||
|
|
Loading…
Reference in a new issue