Skip to content

Commit

Permalink
Tweak elf dep checking and running compiled result
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 authored Jan 27, 2024
1 parent 3134ddb commit 122b6df
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/build_linux_zig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,10 @@ cd ${BUILDDIR}

cd python-install
echo "python dependencies"
ldd -v -r ./bin/python
readelf -d ./bin/python
echo
echo "libpython dependencies"
ldd -v -r ./lib/libpython${PYTHON_VER}.so
readelf -d ./lib/libpython${PYTHON_VER}.so

echo "::endgroup::"
################
Expand All @@ -325,8 +325,8 @@ echo "::group::Check executable dependencies (post-patch)"
cd ${BUILDDIR}

cd python-install
# we don't make ldd errors fatal here since sometimes ldd can
# crash but the patched binaries still work
# we don't make ldd errors fatal here since ldd doesn't work
# when cross compiling
echo "python dependencies"
ldd -v -r ./bin/python || true
echo
Expand All @@ -341,7 +341,7 @@ echo "::group::Test python"
cd ${BUILDDIR}

cd python-install
./bin/python --version
qemu-${ARCH}-static ./bin/python --version

echo "::endgroup::"
###############
Expand All @@ -351,7 +351,7 @@ echo "::group::Preload pip"
cd ${BUILDDIR}

cd python-install
./bin/python -m ensurepip
qemu-${ARCH}-static ./bin/python -m ensurepip

echo "::endgroup::"
###################
Expand Down

0 comments on commit 122b6df

Please sign in to comment.