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
756756 # empty dummy libpython.so, which allows the link to succeed but
757757 # ensures they do not use any unwanted symbols. That might be
758758 # worth doing at some point.)
759- patchelf --set-rpath " \$ ORIGIN/../lib" \
759+ patchelf --force-rpath -- set-rpath " \$ ORIGIN/../lib" \
760760 ${ROOT} /out/python/install/bin/python${PYTHON_MAJMIN_VERSION}
761761
762762 if [ -n " ${PYTHON_BINARY_SUFFIX} " ]; then
763- patchelf --set-rpath " \$ ORIGIN/../lib" \
763+ patchelf --force-rpath -- set-rpath " \$ ORIGIN/../lib" \
764764 ${ROOT} /out/python/install/bin/python${PYTHON_MAJMIN_VERSION}${PYTHON_BINARY_SUFFIX}
765765 fi
766766
@@ -777,7 +777,8 @@ if [ "${PYBUILD_SHARED}" = "1" ]; then
777777 # cases, we have no concerns/need no workarounds for code
778778 # referencing libpython3.x.so.1.0, because we are actually
779779 # 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).
781782 if [ " ${CC} " == " musl-clang" ]; then
782783 # libpython3.so isn't present in debug builds.
783784 if [ -z " ${CPYTHON_DEBUG} " ]; then
You can’t perform that action at this time.
0 commit comments