Skip to content

Commit 8cdf3c1

Browse files
committed
Revert the fix itself to make sure the test fails in CI as expected...
1 parent 1b7a198 commit 8cdf3c1

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

cpython-unix/build-cpython.sh

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -821,25 +821,6 @@ if [ "${PYBUILD_SHARED}" = "1" ]; then
821821
${ROOT}/out/python/install/lib/libpython3.so
822822
fi
823823
fi
824-
825-
# PyInstaller would like to see `ldd` work on modules.
826-
# https://github.com/pyinstaller/pyinstaller/issues/9204#issuecomment-3171583553
827-
# Also this probably helps programs linking libpython avoid having to set an rpath.
828-
patchelf_args=()
829-
if [ "${CC}" == "musl-clang" ]; then
830-
patchelf_args+=(--set-rpath '${ORIGIN}/../..')
831-
else
832-
for lib in ${ROOT}/out/python/install/lib/*; do
833-
basename=${lib##*/}
834-
patchelf_args+=(--replace-needed "$basename" '${ORIGIN}/../../'"$basename")
835-
done
836-
fi
837-
# At the moment, python3 and libpython don't have shared-library
838-
# dependencies, but at some point we will want to run this for
839-
# them too.
840-
for module in ${ROOT}/out/python/install/lib/python*/lib-dynload/*.so; do
841-
patchelf "${patchelf_args[@]}" "$module"
842-
done
843824
fi
844825
fi
845826

0 commit comments

Comments
 (0)