Files
client/native/patches/webrtc/0002-elf-page-size.patch
T
omar eb24965076
ci / linux-arm64-cross (push) Successful in 4m7s
ci / linux-x64 (push) Successful in 4m42s
Implement Rust and Slint native client migration and fix desktop startup
2026-11-10 15:45:24 +03:00

15 lines
428 B
Diff

--- a/BUILD.gn
+++ b/BUILD.gn
@@ -170,6 +170,11 @@
defines = [ "PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII=0" ]
cflags = []
ldflags = []
+
+ # Android and Asahi ARM64 must load on kernels with 16-KiB pages.
+ if (current_cpu == "arm64" && (is_linux || is_android)) {
+ ldflags += [ "-Wl,-z,max-page-size=16384" ]
+ }
if (rtc_objc_prefix != "") {
defines += [ "RTC_OBJC_TYPE_PREFIX=${rtc_objc_prefix}" ]