mirror of
https://github.com/andersrh/copr-andersrh.git
synced 2026-05-23 00:38:03 +00:00
Chromium 138.0.7204.183
This commit is contained in:
parent
7c0b566a47
commit
404c44c8fa
117 changed files with 122161 additions and 0 deletions
34
chromium-lts/fix-rust-linking.patch
Normal file
34
chromium-lts/fix-rust-linking.patch
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
Index: chromium-128.0.6613.113/build/toolchain/gcc_toolchain.gni
|
||||
===================================================================
|
||||
--- chromium-128.0.6613.113.orig/build/toolchain/gcc_toolchain.gni
|
||||
+++ chromium-128.0.6613.113/build/toolchain/gcc_toolchain.gni
|
||||
@@ -441,7 +441,13 @@ template("single_gcc_toolchain") {
|
||||
# -soname flag is not available on aix ld
|
||||
soname_flag = "-Wl,-soname=\"$soname\""
|
||||
}
|
||||
- link_command = "$ld -shared $soname_flag {{ldflags}}${extra_ldflags} -o \"$unstripped_sofile\" @\"$rspfile\" {{rlibs}}"
|
||||
+ if (target_cpu == "ppc64") {
|
||||
+ # Work around linker failures due to Rust libraries and the use of whole-archive
|
||||
+ link_command = "$ld -shared $soname_flag -Wl,--start-group {{ldflags}}${extra_ldflags} -o \"$unstripped_sofile\" @\"$rspfile\" {{rlibs}} -Wl,--end-group"
|
||||
+ }
|
||||
+ else {
|
||||
+ link_command = "$ld -shared $soname_flag {{ldflags}}${extra_ldflags} -o \"$unstripped_sofile\" @\"$rspfile\" {{rlibs}}"
|
||||
+ }
|
||||
|
||||
# Generate a map file to be used for binary size analysis.
|
||||
# Map file adds ~10% to the link time on a z620.
|
||||
@@ -553,7 +559,13 @@ template("single_gcc_toolchain") {
|
||||
whole_archive_flag = "-Wl,--whole-archive"
|
||||
no_whole_archive_flag = "-Wl,--no-whole-archive"
|
||||
}
|
||||
- command = "$ld -shared {{ldflags}}${extra_ldflags} -o \"$unstripped_sofile\" $soname_flag @\"$rspfile\""
|
||||
+ if (target_cpu == "ppc64") {
|
||||
+ # Work around linker failures due to Rust libraries and the use of whole-archive
|
||||
+ command = "$ld -shared -Wl,--start-group {{ldflags}}${extra_ldflags} -o \"$unstripped_sofile\" $soname_flag @\"$rspfile\" -Wl,--end-group"
|
||||
+ }
|
||||
+ else {
|
||||
+ command = "$ld -shared {{ldflags}}${extra_ldflags} -o \"$unstripped_sofile\" $soname_flag @\"$rspfile\""
|
||||
+ }
|
||||
|
||||
if (defined(invoker.strip)) {
|
||||
strip_command = "${invoker.strip} -o \"$sofile\" \"$unstripped_sofile\""
|
||||
Loading…
Add table
Add a link
Reference in a new issue