chore: de-Nixify leanpkg
This commit is contained in:
parent
a9eaba0869
commit
91454854f8
1 changed files with 9 additions and 4 deletions
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue