diff --git a/scripts/whl/manylinux2014/do_build_common.sh b/scripts/whl/manylinux2014/do_build_common.sh index 0f1497241b280522ef42b2f0c6cbf24400d6db11..0e5844e136cbf25cefc5ce74badd4ea5943c7256 100755 --- a/scripts/whl/manylinux2014/do_build_common.sh +++ b/scripts/whl/manylinux2014/do_build_common.sh @@ -51,9 +51,9 @@ function patch_elf_depend_lib_mgb_mge() { handle_strip ${BUILD_DIR}/staging/megengine/core/_imperative_rt.so cp ${BUILD_DIR}/src/libmegengine_shared.so ${LIBS_DIR} + handle_strip ${LIBS_DIR}/libmegengine_shared.so patchelf --remove-rpath ${LIBS_DIR}/libmegengine_shared.so patchelf --force-rpath --set-rpath '$ORIGIN/.' ${LIBS_DIR}/libmegengine_shared.so - handle_strip ${LIBS_DIR}/libmegengine_shared.so # as some version of cudnn/trt libs have dlopen libs, so we can not use auditwheel # TODO: PR for auditwheel to support args for dlopen libs