提交 14813d13 编写于 作者: M Megvii Engine Team

fix(whl): fix whl broken: patchelf on big (> 4G) file will

make elf section broken, as a workaround, do strip firstly,
then do patchelf.

GitOrigin-RevId: c7fb7e25a6e477589ac8d65890e9832d942c0d87
上级 9e0583e1
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册