gst-env: Don't set DYLD_LIBRARY_PATH on macOS
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 24 Aug 2021 08:23:37 +0000 (13:53 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Sat, 28 Aug 2021 18:14:52 +0000 (23:44 +0530)
commita31e9dcf4304bb036866fa4d2f4c3a4d99f7ced8
tree4466c0a44a1e4b1333441a90eb2749c2f0d0ebb2
parent80621a3f07f685e7cde1e56b2ace1e73cd760fd6
gst-env: Don't set DYLD_LIBRARY_PATH on macOS

This is not actually needed because everything we build is using
@rpath already, and setting it causes dynamic linker path priority
issues with macOS internals causing *all* programs to fail to run
inside gst-env:

```
$ vim
dyld: Symbol not found: __cg_jpeg_resync_to_restart
  Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
  Expected in: /Users/nirbheek/projects/repos/gst-build/_build_macos/subprojects/libjpeg-turbo-2.1.0/libJPEG.dylib
 in /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
Abort trap: 6
```

In this case it is caused by libjpeg.dylib, but it can happen with
other dylibs that conflict with dylibs used by macOS internally.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/257>
gst-env.py