File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -756,11 +756,11 @@ if [ "${PYBUILD_SHARED}" = "1" ]; then
756
756
# empty dummy libpython.so, which allows the link to succeed but
757
757
# ensures they do not use any unwanted symbols. That might be
758
758
# worth doing at some point.)
759
- patchelf --set-rpath " \$ ORIGIN/../lib" \
759
+ patchelf --force-rpath -- set-rpath " \$ ORIGIN/../lib" \
760
760
${ROOT} /out/python/install/bin/python${PYTHON_MAJMIN_VERSION}
761
761
762
762
if [ -n " ${PYTHON_BINARY_SUFFIX} " ]; then
763
- patchelf --set-rpath " \$ ORIGIN/../lib" \
763
+ patchelf --force-rpath -- set-rpath " \$ ORIGIN/../lib" \
764
764
${ROOT} /out/python/install/bin/python${PYTHON_MAJMIN_VERSION}${PYTHON_BINARY_SUFFIX}
765
765
fi
766
766
@@ -777,7 +777,8 @@ if [ "${PYBUILD_SHARED}" = "1" ]; then
777
777
# cases, we have no concerns/need no workarounds for code
778
778
# referencing libpython3.x.so.1.0, because we are actually
779
779
# dynamically linking it and so all code will get the real
780
- # libpython3.x.so.1.0 that they want.
780
+ # libpython3.x.so.1.0 that they want (and it's fine to use
781
+ # DT_RUNPATH instead of DT_RPATH).
781
782
if [ " ${CC} " == " musl-clang" ]; then
782
783
# libpython3.so isn't present in debug builds.
783
784
if [ -z " ${CPYTHON_DEBUG} " ]; then
You can’t perform that action at this time.
0 commit comments