diff --git a/rust.spec b/rust.spec index e19c4f6..30fae10 100644 --- a/rust.spec +++ b/rust.spec @@ -379,12 +379,14 @@ rm -rf vendor/openssl-src/openssl/ # This only affects the transient rust-installer, but let it use our dynamic xz-libs sed -i.lzma -e '/LZMA_API_STATIC/d' src/bootstrap/tool.rs +%if %{without bootstrap} %if %{with llvm_static} # Static linking to distro LLVM needs to add -lffi # https://github.com/rust-lang/rust/issues/34486 sed -i.ffi -e '$a #[link(name = "ffi")] extern {}' \ src/librustc_llvm/lib.rs %endif +%endif # The configure macro will modify some autoconf-related files, which upsets # cargo when it tries to verify checksums in those files. If we just truncate