tpoechtrager / cctools-port

Apple cctools port for Linux and *BSD
721 stars 165 forks source link

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

Open Gcenx opened 2 years ago

Gcenx commented 2 years ago

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

Closes #120

tpoechtrager commented 1 year ago

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 commented 1 year ago

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