Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix rpath

Louis Beaumont84d2fec0895e
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 56505eca4..85c87dfa4 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -37,9 +37,10 @@ jobs:
profile: minimal
override: true
- - name: Build
+ - name: Build with RPATH
run: |
export PKG_CONFIG_PATH="/usr/lib/x86_64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH"
+ export RUSTFLAGS="-C link-arg=-Wl,-rpath,\$ORIGIN/lib"
cargo build --release
- name: Copy FFmpeg libraries
@@ -51,6 +52,10 @@ jobs:
cp /usr/lib/x86_64-linux-gnu/libswresample.so* target/release/lib/
cp /usr/lib/x86_64-linux-gnu/libswscale.so* target/release/lib/
+ - name: Verify RPATH
+ run: |
+ chrpath -l target/release/pipe
+
- name: Set RPATH
run: |
chrpath -r '$ORIGIN/lib' target/release/pipe