Fixes: #15599 Release Notes: - N/A ---------
Showing the changes to script/bundle-linux (1 of 41 files). Show all
Unified · Split
| @@ -43,7 +43,10 @@ script/generate-licenses · 42 unmodified lines | ||
| 43 | 43 | |
| 44 | 44 | # Build binary in release mode |
| 45 | 45 | export RUSTFLAGS="${RUSTFLAGS:-} -C link-args=-Wl,--disable-new-dtags,-rpath,\$ORIGIN/../lib" |
| 46 | −cargo build --release --target "${target_triple}" --package zed --package cli --package remote_server | |
| 46 | +cargo build --release --target "${target_triple}" --package zed --package cli | |
| 47 | +# Build remote_server in separate invocation to prevent feature unification from other crates | |
| 48 | +# from influencing dynamic libraries required by it. | |
| 49 | +cargo build --release --target "${target_triple}" --package remote_server | |
| 47 | 50 | |
| 48 | 51 | # Strip the binary of all debug symbols |
| 49 | 52 | # Later, we probably want to do something like this: https://github.com/GabrielMajeri/separate-symbols |
| @@ -51,6 +54,10 @@ strip --strip-debug "${target_dir}/${target_triple}/release/zed" · 1 unmodified line | ||
| 51 | 54 | strip --strip-debug "${target_dir}/${target_triple}/release/cli" |
| 52 | 55 | strip --strip-debug "${target_dir}/${target_triple}/release/remote_server" |
| 53 | 56 | |
| 57 | + | |
| 58 | +# Ensure that remote_server does not depend on libssl nor libcrypto, as we got rid of these deps. | |
| 59 | +ldd "${target_dir}/${target_triple}/release/remote_server" | grep -q 'libcrypto\|libssl' | |
| 60 | + | |
| 54 | 61 | suffix="" |
| 55 | 62 | if [ "$channel" != "stable" ]; then |
| 56 | 63 | suffix="-$channel" |