diff options
Diffstat (limited to 'docker')
| -rwxr-xr-x | docker/build-inner.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/build-inner.sh b/docker/build-inner.sh index 962898b..7c83796 100755 --- a/docker/build-inner.sh +++ b/docker/build-inner.sh @@ -210,6 +210,12 @@ for tool in wrestool icotool lootcli; do [ -f "${OUT_DIR}/${tool}" ] && strip --strip-unneeded "${OUT_DIR}/${tool}" 2>/dev/null || true done +# ── Fix RPATH so binaries find libs without LD_LIBRARY_PATH ── +echo "Patching RPATH..." +patchelf --set-rpath '$ORIGIN/lib' "${OUT_DIR}/ModOrganizer-core" +[ -f "${OUT_DIR}/lootcli" ] && patchelf --set-rpath '$ORIGIN/lib' "${OUT_DIR}/lootcli" +find "${OUT_DIR}/plugins" -name "*.so" -exec patchelf --set-rpath '$ORIGIN/../lib' {} \; 2>/dev/null || true + # ── Validate embedded Python runtime ── cat > /tmp/mo2_embed_py_check.c <<'C' #include <Python.h> |
