Skip to content

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

Open
Gcenx wants to merge 1 commit intotpoechtrager:masterfrom
Gcenx:patch-1
Open

ld64: Swap LTO_RPATH to LTO_LIB - Fixes LTO on macOS#121
Gcenx wants to merge 1 commit intotpoechtrager:masterfrom
Gcenx:patch-1

Conversation

@Gcenx
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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