forked from pool/element-desktop
Dominik Heidler
00c3f7aae2
- Use bundled sqlcipher to work around symbol collision through mozilla-nss (gh#sqlcipher/sqlcipher#385) - Ship app unpacked instead of using asar - Remove development-only files that should not be shipped (bsc#1224133) - prepare.sh: * Ship dependencies as node_modules tree for patching possibility (yarn offline does not support patching) * Work around non-reproducible hakModules dependencies (gh#element-hq/element-desktop#1634) (hak-remove-devdependencies.patch) * Remove non-free binaries from archive * Remove vendored openssl copy from archive * Put everything into one archive - Use correct CFLAGS and RUSTFLAGS * add cc-link-lib-no-static.patch - Fix various build errors with electron-builder * 7za-path.patch * remove-fuses.patch - BuildRequire app-builder instead of using a non-free binary - Add standard Electron module load %check - Clean up unneeded BuildRequires - Drop unused electron-web source copy - Fix build error on ix86 and arm - Fix unresolvable build on Fedora OBS-URL: https://build.opensuse.org/request/show/1174684 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/element-desktop?expand=0&rev=58
19 lines
1.0 KiB
Diff
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()));
|
|
|