From 86cc393c04af4ade428b5e3f822392b0c8dff253 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Tue, 19 May 2026 23:43:35 +0200 Subject: [PATCH] linux: Bundle libstdc++.so for release (#57132) Self-Review Checklist: - [ ] I've reviewed my own diff for quality, security, and reliability - [ ] Unsafe blocks (if any) have justifying comments - [ ] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [ ] Tests cover the new/changed behavior - [ ] Performance impact has been considered and is acceptable Closes https://github.com/zed-industries/zed/issues/57073 Release Notes: - Fixed running Zed on Ubuntu 20.04 installed via the installer by bundling the required `libstdc++.so`. --- script/bundle-linux | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/bundle-linux b/script/bundle-linux index 3487feaf32..b510365acb 100755 --- a/script/bundle-linux +++ b/script/bundle-linux @@ -151,10 +151,12 @@ cp "${target_dir}/${target_triple}/release/zed" "${zed_dir}/libexec/zed-editor" cp "${target_dir}/${target_triple}/release/cli" "${zed_dir}/bin/zed" # Libs +# Bundle libstdc++ so older supported systems can run binaries built with our +# toolchain even when their system libstdc++.so.6 lacks required GLIBCXX symbols. find_libs() { ldd ${target_dir}/${target_triple}/release/zed |\ cut -d' ' -f3 |\ - grep -v '\<\(libstdc++.so\|libc.so\|libgcc_s.so\|libm.so\|libpthread.so\|libdl.so\|libasound.so\)' + grep -v '\<\(libc.so\|libgcc_s.so\|libm.so\|libpthread.so\|libdl.so\|libasound.so\)' } mkdir -p "${zed_dir}/lib"