You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build(macOS): set the LC_ID_DYLIB for mac binaries to set correct name for linking (#1646)
# What does this PR do?
for macOS builds we were not setting `LC_ID_DYLIB`, so the absolute path at build time was being used, which causes problems when you link against the dylib on another machine.
This PR should correctly set `LC_ID_DYLIB` for macOS. Something similar was done for linux in #1258
The post-build fix logic has been removed since it doesn't seem to be used anywhere else anymore.
# Motivation
What inspired you to submit this pull request?
# Additional Notes
Anything else we should know when reviewing?
# How to test the change?
`cargo run --bin release --release -- --out /tmp/libdatadog-output`
Prior to this change the output would have looked like:
```
cmd LC_ID_DYLIB
cmdsize 184
name /Users/ec2-user/builds/.../libdatadog_profiling_ffi.dylib (offset 24)
```
With this change it now looks like:
```
cmd LC_ID_DYLIB
cmdsize 64
name @rpath/libdatadog_profiling.dylib (offset 24)
```
Co-authored-by: hoolioh <107922352+hoolioh@users.noreply.github.com>
Co-authored-by: julio.gonzalez <julio.gonzalez@datadoghq.com>
0 commit comments