未验证 提交 574f58b6 编写于 作者: H huzhiqiang 提交者: GitHub

[BUG FIX][PYTHON] fix the issue that python lib can not compile properly #3470

上级 c6e411f7
...@@ -50,7 +50,7 @@ if '${WITH_MKL}' == 'ON': ...@@ -50,7 +50,7 @@ if '${WITH_MKL}' == 'ON':
# link lite.so to paddlelite.libs # link lite.so to paddlelite.libs
if os.name != 'nt': if os.name != 'nt':
COMMAND = "patchelf --set-rpath '$ORIGIN/../libs/' ${PADDLE_BINARY_DIR}\ COMMAND = "patchelf --set-rpath '$ORIGIN/../libs/' ${PADDLE_BINARY_DIR}\
/inference_lite_lib/python/install/lite/lite.so" /inference_lite_lib/python/install/lite/lite.so"
if os.system(COMMAND) != 0: if os.system(COMMAND) != 0:
raise Exception("patch third_party libs failed, command: %s" % COMMAND) raise Exception("patch third_party libs failed, command: %s" % COMMAND)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册