Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use DYLD_FALLBACK_LIBRARY_PATH for dylib_path_envvar on macOS #6355

Merged
merged 1 commit into from
Jan 2, 2019

Commits on Dec 27, 2018

  1. use DYLD_FALLBACK_LIBRARY_PATH for dylib_path_envvar on macOS

    When loading and linking a dynamic library or bundle, dlopen
    searches in LD_LIBRARY_PATH, DYLD_LIBRARY_PATH, PWD, and
    DYLD_FALLBACK_LIBRARY_PATH.
    In the Mach-O format, a dynamic library has an "install path."
    Clients linking against the library record this path, and the
    dynamic linker, dyld, uses it to locate the library.
    dyld searches DYLD_LIBRARY_PATH *before* the install path.
    dyld searches DYLD_FALLBACK_LIBRARY_PATH only if it cannot
    find the library in the install path.
    Setting DYLD_LIBRARY_PATH can easily have unintended
    consequences.
    
    See https://users.rust-lang.org/t/subprocess-and-dynamic-library-linking-problem-interaction/7873/10
    See https://trac.macports.org/ticket/57692
    MarcusCalhoun-Lopez committed Dec 27, 2018
    Configuration menu
    Copy the full SHA
    b7516d3 View commit details
    Browse the repository at this point in the history