Skip to content

Commit

Permalink
Merge pull request #3 from spacedriveapp/fix-gcompat
Browse files Browse the repository at this point in the history
  • Loading branch information
HeavenVolkoff authored Jan 10, 2024
2 parents b3a0c6a + c600460 commit 4490169
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions stages/99-gcompat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ find . -empty -type d -delete
# Adjust rpath to use $ORIGIN
find lib -type f -name '*.so*' -exec patchelf --set-rpath "\$ORIGIN" {} \;

# Copy gcompat and it's dependencies to the output directory, resolving symlinks
mkdir -p "${OUT}/gcompat"
for lib in libgcompat.so.0 libobstack.so.1 libucontext.so.1 libucontext_posix.so.1; do
cp -L "lib/${lib}" "${OUT}/gcompat/"
done
# Remove musl and ld-musl, as that is always included by the OS
rm lib/ld-musl-*.so.1 lib/libc.musl-*.so.1
# Copy gcompat and it's dependencies to the output directory
mv "lib" "${OUT}/gcompat"

0 comments on commit 4490169

Please sign in to comment.