prefix: Fix build breakage due to invalid prefix argument
Building a rust compiler for x86_64-unknown-redox using: $ PREFIX_RUSTC=1 PREFIX_BINARY=0 make prefix fails with a message citing 'could not canonicalize prefix path'. As seen in rust/bootstrap/install.rs: https://gitlab.redox-os.org/redox-os/rust/blob/redox/src/bootstrap/install.rs#L77 .. the expectation is that either the '--prefix' argument passed to rust's configure script is a valid path or not specified at all (in which case a correct default is used). This patch uses the former approach resulting in a correct build.
This commit is contained in:
parent
f0c09396fd
commit
8c3241e7a6
|
@ -123,7 +123,7 @@ $(PREFIX)/rust-freestanding-install: $(ROOT)/rust | $(PREFIX)/gcc-freestanding-i
|
|||
cp -r "$(PREFIX)/gcc-freestanding-install" "$@.partial"
|
||||
cd "$(PREFIX)/rust-freestanding-build" && \
|
||||
export PATH="$(ROOT)/$@.partial/bin:$$PATH" && \
|
||||
"$</configure" --prefix="" --disable-docs && \
|
||||
"$</configure" --prefix="/" --disable-docs && \
|
||||
make -j `$(NPROC)` && \
|
||||
make -j `$(NPROC)` install DESTDIR="$(ROOT)/$@.partial"
|
||||
rm -rf "$(PREFIX)/rust-freestanding-build"
|
||||
|
|
Loading…
Reference in a new issue