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

release/19.x: [LLD] [MinGW] Recognize the -rpath option (#102886) #104843

Merged
merged 1 commit into from
Aug 20, 2024

Commits on Aug 20, 2024

  1. [LLD] [MinGW] Recognize the -rpath option (llvm#102886)

    GNU ld silently accepts the -rpath option for Windows targets, as a
    no-op.
    
    This has lead to some build systems (and users) passing this option
    while building for Windows/MinGW, even if Windows doesn't have any
    concept like rpath.
    
    Older versions of Conan did include -rpath in the pkg-config files it
    generated, see e.g.
    
    https://github.com/conan-io/conan/blob/17c58f0c61931f9de218ac571cd97a8e0befa68e/conans/client/generators/pkg_config.py#L104-L114
    and
    https://github.com/conan-io/conan/blob/17c58f0c61931f9de218ac571cd97a8e0befa68e/conans/client/build/compiler_flags.py#L26-L34
    - and see mstorsjo/llvm-mingw#300 for user
    reports about this issue.
    
    Recognize the option in LLD for MinGW targets, to improve drop-in
    compatibility compared to GNU ld, but produce a warning to alert users
    that the option really has no effect for these targets.
    
    (cherry picked from commit 69f76c7)
    mstorsjo authored and tru committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    6dbc0e2 View commit details
    Browse the repository at this point in the history