Try some more linker magic to get it working on ubuntu 20 (#11784)
Release Notes: - N/A
This commit is contained in:
parent
aee00d41d8
commit
15e1895159
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ host_line=$(echo "$version_info" | grep host)
|
||||||
target_triple=${host_line#*: }
|
target_triple=${host_line#*: }
|
||||||
|
|
||||||
# Build binary in release mode
|
# Build binary in release mode
|
||||||
export RUSTFLAGS="-C link-args=-Wl,-rpath,\$ORIGIN/../lib"
|
export RUSTFLAGS="-C link-args=-Wl,--disable-new-dtags,-rpath,\$ORIGIN/../lib"
|
||||||
cargo build --release --target "${target_triple}" --package zed --package cli
|
cargo build --release --target "${target_triple}" --package zed --package cli
|
||||||
|
|
||||||
# Strip the binary of all debug symbols
|
# Strip the binary of all debug symbols
|
||||||
|
@ -65,7 +65,7 @@ cp "target/${target_triple}/release/cli" "${zed_dir}/bin/cli"
|
||||||
find_libs() {
|
find_libs() {
|
||||||
ldd target/${target_triple}/release/Zed |\
|
ldd target/${target_triple}/release/Zed |\
|
||||||
cut -d' ' -f3 |\
|
cut -d' ' -f3 |\
|
||||||
grep -v '\<\(libstdc++.so\|libc.so\|libgcc_s.so\|libm.so\)'
|
grep -v '\<\(libstdc++.so\|libc.so\|libgcc_s.so\|libm.so\|libpthread.so\)'
|
||||||
}
|
}
|
||||||
|
|
||||||
mkdir -p "${zed_dir}/lib"
|
mkdir -p "${zed_dir}/lib"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue