Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ld64: Swap LTO_RPATH to LTO_LIB - Fixes LTO on macOS #121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Gcenx
Copy link

@Gcenx Gcenx commented Mar 19, 2022

Fixes LTO linking on macOS this follows what's done with other libraries in ld_LDADD section

Closes #120

Fixes LTO linking on macOS this follows what's done with other libraries in ld_LDADD section
@tpoechtrager
Copy link
Owner

ld64 shouldn't link against libLTO. The library is loaded dynamically. If linking against it is indeed needed on macOS, then feel free to adjust the PR so it affects only macOS.

@Gcenx
Copy link
Author

Gcenx commented Aug 21, 2023

I’ll look over this again, I can’t remember if the rpath was configured correctly or not.

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.

ld64: macOS LTO doesn’t get linked
2 participants