-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rust: apply patch to fix duplicate object file bug
Having multiple object files with the same name upsets libtool and breaks the librsvg build. See #85278.
- Loading branch information
1 parent
93ab7a9
commit 9839482
Showing
1 changed file
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ class Rust < Formula | |
desc "Safe, concurrent, practical language" | ||
homepage "https://www.rust-lang.org/" | ||
license any_of: ["Apache-2.0", "MIT"] | ||
revision 1 | ||
|
||
stable do | ||
url "https://static.rust-lang.org/dist/rustc-1.56.1-src.tar.gz" | ||
|
@@ -61,6 +62,14 @@ class Rust < Formula | |
end | ||
end | ||
|
||
# Make sure object files in static archives have distinct names. | ||
# https://github.com/rust-lang/compiler-builtins/issues/443 | ||
patch do | ||
url "https://github.com/rust-lang/compiler-builtins/commit/eaab9d29ecbf538369d7f26953425eb78dae8229.patch?full_index=1" | ||
sha256 "2eaafddf3dad416431b42f3a5e222a2d4261ab026a165c7f23d6ec378a0ccff5" | ||
directory "vendor/compiler_builtins" | ||
end | ||
|
||
def install | ||
ENV.prepend_path "PATH", Formula["[email protected]"].opt_libexec/"bin" | ||
|
||
|