chore: de-Nixify leanpkg

This commit is contained in:
Sebastian Ullrich 2021-01-01 17:13:03 +01:00
parent a9eaba0869
commit 91454854f8

View file

@ -85,14 +85,19 @@ jobs:
cd build
cmake .. ${{ matrix.CMAKE_OPTIONS }}
make -j4
# de-Nix-ify binary
# de-Nix-ify binaries
- name: Patch
run: patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 --remove-rpath build/stage1/bin/lean
run: |
for f in lean leanpkg; do
patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 --remove-rpath build/stage1/bin/$f
done
if: matrix.name == 'Linux release'
- name: Patch
run: |
for lib in $(otool -L build/stage1/bin/lean | tail -n +2 | cut -d' ' -f1); do
install_name_tool -change "$lib" "/usr/lib/$(basename $lib | sed 's/libc++\.1\.0/libc++.1/')" build/stage1/bin/lean
for f in lean leanpkg; do
for lib in $(otool -L build/stage1/bin/$f | tail -n +2 | cut -d' ' -f1); do
install_name_tool -change "$lib" "/usr/lib/$(basename $lib | sed 's/libc++\.1\.0/libc++.1/')" build/stage1/bin/$f
done
done
if: matrix.name == 'macOS'
- name: Pack