diff --git a/rust/config/global.go b/rust/config/global.go index b94d92fd9..4d31121e5 100644 --- a/rust/config/global.go +++ b/rust/config/global.go @@ -65,6 +65,7 @@ var ( "-lpthread", "-lm", "-lgcc_s", + "-Wl,--compress-debug-sections=zstd", } deviceGlobalRustFlags = []string{ @@ -86,6 +87,7 @@ var ( "-Wl,--use-android-relr-tags", "-Wl,--no-undefined", "-B${cc_config.ClangBin}", + "-Wl,--compress-debug-sections=zstd", } )