Skip to content

Commit 45e52da

Browse files
committed
Auto merge of #30353 - alexcrichton:rpath-by-default, r=brson
This commit changes our distribution and in-tree sources to pass the `-C rpath` flag by default during compiles. This means that from-source builds, including our release channels, will have this option enabled as well. Motivated by #29941, this change means that the compiler should be usable as-is on all platforms just after extraction or installation. This experience is already true on Windows but on Unixes you still need to set up LD_LIBRARY_PATH or the equivalent, which can often be unfortunate. This option was originally turned off by default for Linux distributions who tend to take care of these sorts of details themselves, so it is expected that all those builds of Rust will want to pass `--disable-rpath` to the configure script to preserve that behavior. Closes #29941
2 parents 42c3ef8 + 9bff8b0 commit 45e52da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ opt fast-make 0 "use .gitmodules as timestamp for submodule deps"
587587
opt ccache 0 "invoke gcc/clang via ccache to reuse object files between builds"
588588
opt local-rust 0 "use an installed rustc rather than downloading a snapshot"
589589
opt llvm-static-stdcpp 0 "statically link to libstdc++ for LLVM"
590-
opt rpath 0 "build rpaths into rustc itself"
590+
opt rpath 1 "build rpaths into rustc itself"
591591
opt stage0-landing-pads 1 "enable landing pads during bootstrap with stage0"
592592
# This is used by the automation to produce single-target nightlies
593593
opt dist-host-only 0 "only install bins for the host architecture"

0 commit comments

Comments
 (0)