element-desktop/cc-link-lib-no-static.patch
Dominik Heidler ec77cae8ee - Version 1.11.87
##  Features
  * Send and respect MSC4230 is\_animated flag (https://github.com/element-hq/element-web/pull/28513). Contributed by @t3chguy.
  * Display a warning when an unverified user's identity changes (https://github.com/element-hq/element-web/pull/28211). Contributed by @uhoreg.
  * Swap out Twitter link for Mastodon on auth footer (https://github.com/element-hq/element-web/pull/28508). Contributed by @t3chguy.
  * Consider `org.matrix.msc3417.call` as video room in create room dialog (https://github.com/element-hq/element-web/pull/28497). Contributed by @t3chguy.
  * Standardise icons using Compound Design Tokens (https://github.com/element-hq/element-web/pull/28217). Contributed by @t3chguy.
  * Start sending stable `m.marked_unread` events (https://github.com/element-hq/element-web/pull/28478). Contributed by @tulir.
  * Upgrade to compound-design-tokens v2 (https://github.com/element-hq/element-web/pull/28471). Contributed by @t3chguy.
  * Standardise icons using Compound Design Tokens (https://github.com/element-hq/element-web/pull/28286). Contributed by @t3chguy.
  * Remove reply fallbacks as per merged MSC2781 (https://github.com/element-hq/element-web/pull/28406). Contributed by @t3chguy.
  * Use React Suspense when rendering async modals (https://github.com/element-hq/element-web/pull/28386). Contributed by @t3chguy.
  ## 🐛 Bug Fixes
  * Add spinner when room encryption is loading in room settings (https://github.com/element-hq/element-web/pull/28535). Contributed by @florianduros.
  * Fix getOidcCallbackUrl for Element Desktop (https://github.com/element-hq/element-web/pull/28521). Contributed by @t3chguy.
  * Filter out redacted poll votes to avoid crashing the Poll widget (https://github.com/element-hq/element-web/pull/28498). Contributed by @t3chguy.
  * Fix force tab complete not working since switching to React 18 createRoot API (https://github.com/element-hq/element-web/pull/28505). Contributed by @t3chguy.
  * Fix media captions in bubble layout (https://github.com/element-hq/element-web/pull/28480). Contributed by @tulir.
  * Reset cross-signing before backup when resetting both (https://github.com/element-hq/element-web/pull/28402). Contributed by @uhoreg.
  * Listen to events so that encryption icon updates when status changes (https://github.com/element-hq/element-web/pull/28407). Contributed by @uhoreg.
  * Check that the file the user chose has a MIME type of `image/*` (https://github.com/element-hq/element-web/pull/28467). Contributed by @t3chguy.
  * Fix download button size in message action bar (https://github.com/element-hq/element-web/pull/28472). Contributed by @t3chguy.
  * Allow tab completing users in brackets (https://github.com/element-hq/element-web/pull/28460). Contributed by @t3chguy.
  * Fix React 18 strict mode breaking spotlight dialog (https://github.com/element-hq/element-web/pull/28452). Contributed by @MidhunSureshR.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-desktop?expand=0&rev=89
2024-12-03 13:51:00 +00:00

19 lines
1.0 KiB
Diff

Do not make cc emit "static" to cargo, that option is broken (rustc tries to repact LTO objects and corrupts them in the process leading to missing symbols).
Make rustc believe everything foreign is a “dylib”. (It's not, but that makes it pass them to intact to GCC to do the linking)
--- vendor/.hak/hakModules/matrix-seshat/vendor/cc/src/lib.rs.orig 2024-05-16 18:44:16.828468243 +0200
+++ vendor/.hak/hakModules/matrix-seshat/vendor/cc/src/lib.rs 2024-05-16 19:04:27.036595422 +0200
@@ -1100,10 +1100,10 @@ impl Build {
}
if self.link_lib_modifiers.is_empty() {
- self.print(&format!("cargo:rustc-link-lib=static={}", lib_name));
+ self.print(&format!("cargo:rustc-link-lib={}", lib_name));
} else {
let m = self.link_lib_modifiers.join(",");
- self.print(&format!("cargo:rustc-link-lib=static:{}={}", m, lib_name));
+ self.print(&format!("cargo:rustc-link-lib:{}={}", m, lib_name));
}
self.print(&format!("cargo:rustc-link-search=native={}", dst.display()));