Skip to content

macos: Add no_fixup_chains linker flag for python targets

This fixes the warning:

ld: warning: -undefined dynamic_lookup may not work with chained fixups

Python targets are linked with "-undefined dynamic_lookup" which does not integrate well with "fixup_chains" which are passed by default to the linker by Xcode. This is fixed in Xcode 14.3[1] but we use lower versions so we disable fixup chains.

[1] https://github.com/Homebrew/brew/pull/14873

Merge request reports