From 635d68a63b9f8d6fed8bba286ba1960b496d2560 Mon Sep 17 00:00:00 2001 From: huzhiqiang <912790387@qq.com> Date: Fri, 22 May 2020 10:21:00 +0800 Subject: [PATCH] [BUG FIX] Fix the issue that paddle-lite python lib can not inference on mac env --- lite/api/python/setup_mac.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lite/api/python/setup_mac.py.in b/lite/api/python/setup_mac.py.in index b4d53e8400..a0f22331fb 100644 --- a/lite/api/python/setup_mac.py.in +++ b/lite/api/python/setup_mac.py.in @@ -47,7 +47,7 @@ if '${WITH_MKL}' == 'ON': PACKAGE_DATA['paddlelite.libs'] += ['libmklml.dylib', 'libiomp5.dylib'] # link lite.so to paddlelite.libs -COMMAND = "install_name_tool -id \"@loader_path/libs/\" ${PADDLE_BINARY_DIR}\ +COMMAND = "install_name_tool -add_rpath \"@loader_path/libs/\" ${PADDLE_BINARY_DIR}\ /inference_lite_lib/python/install/lite/lite.so" if os.system(COMMAND) != 0: raise Exception("patch third_party libs failed, command: %s" % COMMAND) -- GitLab