diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8c38ef2d2..f13c7b30a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: cibuild: "*macosx*" cibw_arch: "macos_x86_64" macos-arch: "x86_64" - - os: "macos-latest" # M1 runner + - os: "macos-14" # M1 runner cibuild: "*macosx*" cibw_arch: "macos_arm64" macos-arch: "arm64" diff --git a/setup.py b/setup.py index 6f3415574..6c7f276b8 100644 --- a/setup.py +++ b/setup.py @@ -540,7 +540,7 @@ def link_args(self, options, is_library): "-Wl,-dylib", "-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: