Skip to content

Commit 09b6797

Browse files
committed
fix
1 parent 275f9d3 commit 09b6797

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/build.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ def download_libcurl():
7979
for file in glob(os.path.join(arch["libdir"], "bin/*.dll")):
8080
shutil.move(file, arch["libdir"])
8181

82+
if arch["system"] == "Darwin":
83+
# Fix the install name baked into the upstream dylib so delocate can find it
84+
dylib = os.path.join(arch["libdir"], arch["so_name"])
85+
os.system(f"install_name_tool -id @rpath/{arch['so_name']} {dylib}")
86+
8287
print("Files after unpacking")
8388
print(os.listdir(arch["libdir"]))
8489

0 commit comments

Comments
 (0)