From 03e1a88f640596d06be6eca3cffa0f8cae22cebe Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 7 Feb 2026 16:29:57 +0100 Subject: [PATCH] Place the option in the right place --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index a06d6a143..6c7f276b8 100644 --- a/setup.py +++ b/setup.py @@ -538,10 +538,9 @@ class Config(object): if is_library: args += [ "-Wl,-dylib", - "-Wl,-headerpad_max_install_names", "-Wl,-install_name,@rpath/%s" % self.libname_of(mod, is_lib=True), ] - args += ["-Wl,-rpath,@loader_path/"] + args += ["-Wl,-rpath,@loader_path/", "-Wl,-headerpad_max_install_names"] args += options.get("ldflags-gcc", []) args += options.get("ldflags-darwin", []) else: