Skip to content

Apply -undefined dynamic_lookup to all Apple platforms#6075

Open
jjuang-apple wants to merge 2 commits into
pybind:masterfrom
jjuang-apple:bugfix/all-apple-platforms
Open

Apply -undefined dynamic_lookup to all Apple platforms#6075
jjuang-apple wants to merge 2 commits into
pybind:masterfrom
jjuang-apple:bugfix/all-apple-platforms

Conversation

@jjuang-apple
Copy link
Copy Markdown

The -undefined dynamic_lookup flag is an Apple linker (ld64) feature, it works on all Apple platforms, not just macOS. Gating it behind $<PLATFORM_ID:Darwin> means it breaks for anyone cross-compiling Python extensions for iOS/tvOS/watchOS/visionOS.

@jjuang-apple jjuang-apple requested a review from henryiii as a code owner May 21, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant