tpoechtrager / cctools-port

Apple cctools port for Linux and *BSD
731 stars 168 forks source link

ld64: macOS LTO doesn’t get linked #120

Closed Gcenx closed 1 year ago

Gcenx commented 2 years ago

When compiling ld64 doesn’t have an install name for liblto.dylib after doing some digging I did the following change https://github.com/Gcenx/cctools-port/commit/83269d6b8fc72806a3a8e643a98d5104989e4f76

After this (and regenerating Makefile.in) ld64 compiled and does contain an libLTO install name of @rpath/libLTO.1.dylib and there’s a correctly configured path to said dylib.